-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (44 loc) · 1.4 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
version: 3
services:
grafana:
image: grafana/grafana-oss
ports: 3000:3000
volumes:
- ./datasource.yml:/etc/grafana/provisioning/datasources/prometheus.yml:Z
- grafana-data:/var/lib/grafana:Z
prometheus:
image: prom/prometheus
ports: 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:Z
- prometheus_data:/prometheus:Z
- ./rules.yml:/etc/prometheus/rules.yml:Z
- ./test.yml:/etc/prometheus/test.yml:Z
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
metrics:
image: littleangryclouds/prometheus-data-generator
ports: 9000:9000
volumes:
- ./metrics-config.yml:/home/appuser/config.yml:Z
node-exporter:
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:
- 9100:9100
privileged: true
restart: always
volumes:
grafana_data: {}
prometheus_data: {}