# {{ ansible_managed }} # disable_metrics permet de gagner beaucoup de cpu cadvisor # all metrics : advtcp,app,cpu,cpuLoad,cpu_topology,cpuset,disk,diskIO,hugetlb,memory,memory_numa,network,oom_event,percpu,perf_event,process,referenced_memory,resctrl,sched,tcp,udp # enable_metrics surcharge disable_metrics # pour y voir clair : disable_metrics => on met tout, et dans enable_metrics : ce qu'on veut seulement services: cadvisor: image: gcr.io/cadvisor/cadvisor:{{ docker_cadvisor_version }} privileged: true command: - "-housekeeping_interval=30s" - "-docker_only=true" - "-enable_metrics=cpu,memory,network,diskIO" - "-disable_metrics=advtcp,app,cpu,cpuLoad,cpu_topology,cpuset,disk,diskIO,hugetlb,memory,memory_numa,network,oom_event,percpu,perf_event,process,referenced_memory,resctrl,sched,tcp,udp" devices: - /dev/kmsg:/dev/kmsg volumes: - /:/rootfs:ro - /var/run:/var/run:ro - /sys:/sys:ro - {{ docker_cadvisor_data_dir }}/docker:/var/lib/docker:ro restart: always userns_mode: host ports: - {{ docker_cadvisor_port }}:8080 labels: org.label-schema.group: "monitoring"