-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonc.yml
107 lines (101 loc) · 2.48 KB
/
monc.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
services:
export-metrics:
image: "prom/node-exporter:v1.3.1"
container_name: "export-metrics-container"
network_mode: "host"
volumes:
- "/proc:/host/proc:ro"
- "/sys:/host/sys:ro"
- "/:/host/rootfs:ro"
command:
- "--path.procfs=/host/proc"
- "--path.sysfs=/host/sys"
- "--path.rootfs=/host/rootfs"
- "--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|etc)($$|/)"
restart: "always"
profiles:
- "export-metrics"
- "export"
- "metrics"
- "monc"
export-logs:
image: "grafana/promtail:v2.8.0"
container_name: "export-logs-container"
environment:
- "LOKI_IP=${LOKI_IP}"
- "PROMTAIL_CONFIG=${PROMTAIL_CONFIG}"
network_mode: "host"
extra_hosts:
- "loki:${LOKI_IP}"
volumes:
- "/var/log:/host/var/log:ro"
- "/tmp:/tmp:rw"
- "${PROMTAIL_CONFIG}:/etc/promtail/promtail.yml"
command:
- "--config.file=/etc/promtail/promtail.yml"
restart: "always"
profiles:
- "export-logs"
- "export"
- "logs"
- "monc"
store-metrics:
image: "prom/prometheus"
container_name: "store-metrics-container"
environment:
- "EXPORTER_IP=${EXPORTER_IP}"
- "PROMETHEUS_CONFIG=${PROMETHEUS_CONFIG}"
ports:
- "9090:9090"
expose:
- "9090"
volumes:
- "${PROMETHEUS_CONFIG}:/etc/prometheus/prometheus.yml"
- "stored-metrics:/prometheus"
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
restart: "always"
profiles:
- "store-metrics"
- "store"
- "metrics"
- "monc"
- "store-and-visualise-metrics"
store-logs:
image: "grafana/loki:2.8.0"
container_name: "store-logs-container"
user: "root"
environment:
- "LOKI_CONFIG=${LOKI_CONFIG}"
- "PROMTAIL_IP=${PROMTAIL_IP}"
ports:
- "3100:3100"
expose:
- "3100"
volumes:
- "stored-logs:/tmp/loki:rw"
- "${LOKI_CONFIG}:/etc/loki/loki.yml"
command:
- "--config.file=/etc/loki/loki.yml"
restart: "always"
profiles:
- "store-logs"
- "store"
- "logs"
- "monc"
visualize:
image: "grafana/grafana:11.0.0-ubuntu"
container_name: "visualize-container"
ports:
- "3000:3000"
expose:
- "3000"
restart: "always"
profiles:
- "visualize"
- "monc"
- "store-and-visualise-metrics"
volumes:
stored-metrics:
stored-logs: