forked from ddiiwoong/synology-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (53 loc) · 1.5 KB
/
docker-compose.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
56
57
version: "3.8"
services:
prometheus:
container_name: prometheus
image: quay.io/prometheus/prometheus:v2.26.0
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
- ./rules:/etc/prometheus/rules
command: "--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus"
ports:
- 9090:9090
grafana:
container_name: grafana
image: grafana/grafana
ports:
- "3000:3000"
depends_on:
- prometheus
alertmanager:
container_name: alertmanager
image: prom/alertmanager:v0.21.0
ports:
- 9093:9093
volumes:
- ./config/alertmanager.yml:/etc/alertmanager/alertmanager.yml
- ./config/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
restart: always
node-exporter:
privileged: true
image: prom/node-exporter
container_name: node-exporter
restart: unless-stopped
ports:
- "9100:9100"
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"
- "^/(rootfs/)?(dev|etc|host|proc|run|sys|volume1)($$|/)"
snmp-exporter:
image: prom/snmp-exporter
container_name: snmp_exporter
restart: unless-stopped
volumes:
- ./snmp-synology/snmp.yml:/etc/snmp_exporter/snmp.yml
ports:
- 9116:9116
command:
- "--config.file=/etc/snmp_exporter/snmp.yml"