-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
193 lines (173 loc) · 5.29 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
version: '3.4'
services:
prometheus:
image: prom/prometheus:v2.22.0
user: "1000:1000"
ports:
- 81:9090
volumes:
- ./prometheus/rules:/etc/prometheus/rules
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/storage:/prometheus
command:
- --config.file=/etc/prometheus/prometheus.yml
- --web.enable-admin-api
- --web.enable-lifecycle
- --storage.tsdb.retention.time=2d
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
mode: non-blocking
max-buffer-size: 4m
grafana:
image: grafana/grafana:7.3.0-beta1
user: "1000:1000"
ports:
- 82:3000
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
mode: non-blocking
max-buffer-size: 4m
alertmanager:
image: prom/alertmanager:v0.21.0
ports:
- 83:9093
command:
- --config.file=/etc/alertmanager/alertmanager.yml
volumes:
- ./alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
mode: non-blocking
max-buffer-size: 4m
node_exporter:
privileged: true
image: prom/node-exporter:v1.0.1
ports:
- "9100:9100"
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
mode: non-blocking
max-buffer-size: 4m
blackbox_exporter:
image: prom/blackbox-exporter:v0.18.0
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
mode: non-blocking
max-buffer-size: 4m
telegrambot:
#image: metalmatze/alertmanager-bot:0.4.2
image: telegrambot # built from https://github.com/ArthurSens/alertmanager-bot -> branch 'tracing support'
command:
- --alertmanager.url=http://alertmanager:9093
- --log.level=debug
- --store=bolt
- --bolt.path=/data/bog.db
- --jaeger.endpoint=http://tempo:14268/api/traces
environment:
TELEGRAM_ADMIN: ${TELEGRAM_ADMIN}
TELEGRAM_TOKEN: ${TELEGRAM_TOKEN}
volumes:
- ./alertmanager-bot/storage:/data
ports:
- "8080:8080"
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
mode: non-blocking
max-buffer-size: 4m
loki:
image: grafana/loki:2.0.0
command: -config.file=/etc/loki/local-config.yaml
ports:
- "3100:3100" # loki needs to be exposed so it receives logs
environment:
- JAEGER_AGENT_HOST=tempo
- JAEGER_ENDPOINT=http://tempo:14268/api/traces # send traces to Tempo
- JAEGER_SAMPLER_TYPE=const
- JAEGER_SAMPLER_PARAM=1
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
mode: non-blocking
max-buffer-size: 4m
tempo:
image: grafana/tempo:latest
command:
- "-storage.trace.backend=local" # tell tempo where to permanently put traces
- "-storage.trace.local.path=/data/tempo/traces"
- "-storage.trace.wal.path=/data/tempo/wal" # tell tempo where to store the wal
- "-auth.enabled=false" # disables the requirement for the X-Scope-OrgID header
- "-server.http-listen-port=3100"
volumes:
- ./tempo/tempo.yaml:/etc/tempo.yaml
- ./tempo/storage:/data/tempo
ports:
- "14268" # jaeger ingest
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
mode: non-blocking
max-buffer-size: 4m
tempo-query:
image: grafana/tempo-query:latest
command: ["--grpc-storage-plugin.configuration-file=/etc/tempo-query.yaml"]
volumes:
- ./tempo/tempo-query.yaml:/etc/tempo-query.yaml
ports:
- "16686:16686" # jaeger-ui
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
mode: non-blocking
max-buffer-size: 4m
promscale:
image: timescale/promscale:0.1.1
environment:
TS_PROM_DB_HOST: "timescaleDB"
TS_PROM_DB_PASSWORD: ${TIMESCALE_PASSWORD}
TS_PROM_DB_USER: ${TIMESCALE_USER}
TS_PROM_DB_SSL_MODE: "disable"
depends_on:
- timescaleDB
restart: on-failure # TimescaleDB container is up but db process isn't, causes promscale to fail
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
mode: non-blocking
max-buffer-size: 4m
timescaleDB:
image: timescaledev/promscale-extension:latest-pg12
environment:
POSTGRES_PASSWORD: ${TIMESCALE_PASSWORD}
ports:
- "5432:5432"
volumes:
- ./timescaleDB/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./timescaleDB/storage:/var/lib/postgresql/data:Z
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
mode: non-blocking
max-buffer-size: 4m