Skip to content

Commit

Permalink
fix: use proper flags for cadvisor + use less cpu.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbourianes-kalisio committed Sep 13, 2021
1 parent 56a346d commit ebef125
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deploy/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ services:
cadvisor:
image: ${PROMETHEUS_CADVISOR_IMAGE}:${PROMETHEUS_CADVISOR_TAG}
command:
- '--docker_only'
- '-docker_only'
- '-housekeeping_interval=10s'
# don't fetch all container labels, we'll pick those we need
- '--store_container_labels=false'
- '--whitelisted_container_labels=com.docker.swarm.service.name,com.docker.swarm.task.id'
- '-store_container_labels=false'
- '-whitelisted_container_labels=com.docker.swarm.service.name,com.docker.swarm.task.id'
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
Expand Down

0 comments on commit ebef125

Please sign in to comment.