-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.exporters.yml
More file actions
45 lines (42 loc) · 1.33 KB
/
docker-compose.exporters.yml
File metadata and controls
45 lines (42 loc) · 1.33 KB
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
version: '3.2'
services:
#================================================================================================
# NODEEXPORTER
#================================================================================================
nodeexporter:
image: prom/node-exporter:v0.15.0
container_name: dockerframework_nodeexporter
user: root
privileged: true
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
restart: unless-stopped
ports:
- 9100:9100
network_mode: host
labels:
org.label-schema.group: "monitoring"
#================================================================================================
# CADVISOR
#================================================================================================
cadvisor:
image: google/cadvisor:v0.28.3
container_name: dockerframework_cadvisor
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /cgroup:/cgroup:ro
restart: unless-stopped
ports:
- 8080:8080
network_mode: host
labels:
org.label-schema.group: "monitoring"