mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
add cpu and memory limit to prometheus stck
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
version: '2.1'
|
||||
version: '2.4'
|
||||
|
||||
networks:
|
||||
gateway_default:
|
||||
@@ -67,7 +67,9 @@ services:
|
||||
- gateway_default
|
||||
labels:
|
||||
org.label-schema.group: "monitoring"
|
||||
|
||||
mem_limit: 1024m
|
||||
mem_reservation: 128m
|
||||
cpu_percent: 10
|
||||
cadvisor:
|
||||
image: google/cadvisor:v0.32.0
|
||||
container_name: cadvisor
|
||||
@@ -84,7 +86,9 @@ services:
|
||||
- gateway_default
|
||||
labels:
|
||||
org.label-schema.group: "monitoring"
|
||||
|
||||
mem_limit: 1024m
|
||||
mem_reservation: 128m
|
||||
cpu_percent: 10
|
||||
grafana:
|
||||
image: grafana/grafana:5.4.2
|
||||
container_name: grafana
|
||||
|
||||
Reference in New Issue
Block a user