-
Notifications
You must be signed in to change notification settings - Fork 5
/
cadvisor.yml
52 lines (47 loc) · 1.25 KB
/
cadvisor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
- hosts: homelab
vars:
application: cadvisor
cadvisor_disabled_metrics:
- advtcp
- cpu_topology
- disk
- hugetlb
- memory_numa
- percpu
- process
- referenced_memory
- resctrl
- sched
- tcp
- udp
docker_network: "{{ networks.pub }}"
tasks:
- name: Create container
ansible.builtin.include_role:
name: docker_container
vars:
image: gcr.io/cadvisor/cadvisor:v0.49.1
command:
- --allow_dynamic_housekeeping=true
- --docker_only=true
- --event_storage_age_limit=default=0
- --event_storage_event_limit=default=0
- --global_housekeeping_interval=30s
- --housekeeping_interval=30s
- --max_housekeeping_interval=35s
- --storage_duration=1m0s
- --store_container_labels=false
- "--disable_metrics={{ cadvisor_disabled_metrics | join(',') }}"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
devices:
- /dev/kmsg
privileged: true
pid_mode: host
metrics:
- port: 8080