-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonitoring-stack.yml
More file actions
62 lines (57 loc) · 1.17 KB
/
monitoring-stack.yml
File metadata and controls
62 lines (57 loc) · 1.17 KB
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
61
62
version: '3.8'
services:
prometheus:
container_name: prom-server
image: prom/prometheus
restart: unless-stopped
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prom:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
networks:
- monitor
# Metrics for linux hosts for windows support use `windows_exporter`
node_exporter:
container_name: os-metrics
image: prom/node-exporter
restart: unless-stopped
command:
- '--path.rootfs=/host'
network_mode: host
pid: host
volumes:
- '/:/host:ro,rslave'
grafana:
container_name: grafana
image: grafana/grafana
restart: unless-stopped
ports:
- 3000:3000
depends_on:
- prometheus
volumes:
- grafana:/var/lib/grafana
networks:
- monitor
grafana-loki:
container_name: loki
image: grafana/loki
restart: unless-stopped
ports:
- 3100:3100
depends_on:
- grafana
volumes:
- loki:/loki
networks:
- monitor
volumes:
prom:
loki:
grafana:
networks:
monitor: