cleanup cadvisor compose file
Some checks are pending
PVE2 Infrastructure Deploy / terraform (push) Waiting to run

This commit is contained in:
admin 2026-02-06 09:57:03 -07:00
parent 4c0c3a951c
commit 232830b06c

View file

@ -3,20 +3,17 @@ services:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
restart: unless-stopped
# 4. PRIVILEGED: Critical for reading hardware stats/OOM kills
privileged: true
devices:
- /dev/kmsg
ports:
# 5. PORT MAPPING: keeping your preference (8082)
# Ensure Prometheus targets are updated to use 8082!
- "8082:8080"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro # Good for physical disk I/O stats
- /dev/disk/:/dev/disk:ro
command:
- --docker_only
environment: