-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.ext-exporters.yml
56 lines (52 loc) · 1.56 KB
/
docker-compose.ext-exporters.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
53
54
55
---
version: '3.7'
services:
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.44.0
container_name: cadvisor
privileged: true
devices:
- /dev/kmsg:/dev/kmsg
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /dev/disk/:/dev/disk:ro
- /var/lib/docker:/var/lib/docker:ro
- /cgroup:/cgroup:ro #doesn't work on MacOS only for Linux
command:
- '-docker_only'
- '-housekeeping_interval=10s'
- '--disable_metrics=accelerator,cpu_topology,disk,memory_numa,tcp,udp,percpu,sched,process,hugetlb,referenced_memory,resctrl,cpuset,advtcp,memory_numa'
restart: unless-stopped
ports:
- "9338:8080"
labels:
- "org.label-schema.group=monitoring"
nodeexporter:
image: prom/node-exporter:v1.3.1
container_name: nodeexporter
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
- /etc/hostname:/etc/host_hostname:ro
#- /run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro
environment:
- HOST_HOSTNAME:/etc/host_hostname
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
#- '--collector.systemd'
- '--collector.processes'
- '--no-collector.rapl'
restart: unless-stopped
# Not compatible with network_mode host
#ports:
# - "9100:9100"
network_mode: "host"
pid: "host"
labels:
- "org.label-schema.group=monitoring"