-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
60 lines (56 loc) · 1.56 KB
/
compose.yaml
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
56
57
58
59
60
version: '3.7'
volumes:
prometheus_data: {}
services:
prometheus:
container_name: prometheus
network_mode: host
image: prom/prometheus:v2.27.1
volumes:
- ${PROMETHEUS_CONFIG_FILE:-/home/pi/git/multi-container-arm/prometheus/config.yml}:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.wal-segment-size=10MB'
- '--storage.tsdb.max-block-chunk-segment-size=64MB'
- '--storage.tsdb.retention.time=7d'
depends_on:
- cadvisor
restart: always
cadvisor:
container_name: cadvisor
image: budry/cadvisor-arm:latest
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
ports:
- target: 8080
published: 8080
protocol: tcp
mode: host
restart: always
deploy:
mode: global
devices:
- /dev/kmsg
node-exporter:
container_name: nodeexporter
image: prom/node-exporter
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|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)"
ports:
- target: 9100
published: 9100
protocol: tcp
mode: host
restart: always