-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.prometheus-exporters.yml
55 lines (49 loc) · 1.15 KB
/
docker-compose.prometheus-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.3"
networks:
monitor-net:
driver: bridge
services:
btcpool:
ports:
- "9101:9101"
ckb-node:
ports:
- "8100:8100" # Metrics
networks:
- default
- monitor-net
kafkaexporter:
image: danielqsj/kafka-exporter
ports:
- "9308:9308"
restart: unless-stopped
command: ["--kafka.server=kafka:19092"]
nodeexporter:
image: prom/node-exporter:v1.0.1
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.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
restart: unless-stopped
ports:
- "9100:9100"
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.37.0
container_name: cadvisor
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
#- /cgroup:/cgroup:ro #doesn't work on MacOS only for Linux
restart: unless-stopped
command:
- '-port=9080'
ports:
- "9080:9080"