forked from stefanprodan/dockprom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.exporters.yml
46 lines (43 loc) · 1.16 KB
/
docker-compose.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
version: '2.1'
services:
nodeexporter:
image: prom/node-exporter:v1.3.0
container_name: nodeexporter
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
restart: unless-stopped
network_mode: host
labels:
org.label-schema.group: "monitoring"
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
- /var/lib/docker/:/var/lib/docker:ro
- /cgroup:/cgroup:ro
restart: unless-stopped
network_mode: host
labels:
org.label-schema.group: "monitoring"
json-exporter:
image: quay.io/prometheuscommunity/json-exporter:v0.4.0
container_name: json-exporter
volumes:
- ./json-exporter/config.yml:/config.yml
restart: unless-stopped
network_mode: host
labels:
org.label-schema.group: "monitoring"