docker-compose.yml
version: '3.7'
services:
cadvisor:
image: google/cadvisor
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /cgroup:/sys/fs/cgroup:ro
ports:
- 8080:8080
privileged: true
command:
- --allow_dynamic_housekeeping=true
- --housekeeping_interval=30s
- --global_housekeeping_interval=2m
- --disable_metrics=disk,tcp,udp
- --docker_only=true
restart: always
deploy:
mode: global
I have disabled most of the flags.I run it with privileged mode yet I see spikes in CPU.How do I make it consume less CPU?
I get the following error too
W0505 06:22:01.988235 1 raw.go:87] Error while processing event ("/sys/fs/cgroup/blkio/system.slice/systemd-tmpfiles-clean.service": 0x40000100 == IN_CREATE|IN_ISDIR): inotify_add_watch /sys/fs/cgroup/blkio/system.slice/systemd-tmpfiles-clean.service: no such file or directory