-
Notifications
You must be signed in to change notification settings - Fork 131
/
compose.observability.yaml
73 lines (73 loc) · 2.51 KB
/
compose.observability.yaml
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
services:
opentelemetry-collector:
image: otel/opentelemetry-collector-contrib:0.116.1
command: ["--config=/etc/opentelemetry-collector.yaml"]
volumes:
- ./configuration/opentelemetry-collector.yaml:/etc/opentelemetry-collector.yaml
ports:
# NOTE: when `faster-whisper-server` is also running as a Docker Compose service, this doesn't need to be exposed.
- 4317:4317 # OTLP gRPC receiver
# - 4318:4318 # OTLP HTTP receiver
# - 8888:8888 # Prometheus metrics exposed by the Collector
# - 8889:8889 # Prometheus exporter metrics
# - 13133:13133 # health_check extension
# NOTE: `healthcheck` can't be set up, as the container doesn't have a shell to run the healthcheck command.
loki:
image: grafana/loki:3.3.2
command: ["-config.file=/etc/loki.yaml"]
volumes:
- ./configuration/loki.yaml:/etc/loki.yaml
- loki-data:/loki
ports:
- "3100:3100"
healthcheck:
# NOTE: doesn't have a proper healthcheck endpoint
test: wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1
interval: 5s
timeout: 5s
retries: 3
prometheus:
image: prom/prometheus:v2.55.1
command: ["--config.file=/etc/prometheus.yaml"]
volumes:
- ./configuration/prometheus.yaml:/etc/prometheus.yaml
- prometheus-data:/prometheus
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:9090/-/healthy || exit 1
interval: 5s
timeout: 5s
retries: 3
tempo:
image: grafana/tempo:2.6.1
command: ["-config.file=/etc/tempo.yaml"]
volumes:
- ./configuration/tempo.yaml:/etc/tempo.yaml
- tempo-data:/tmp
# https://github.com/grafana/tempo/issues/1657#issuecomment-2049987178
# - tempo-data:/tmp/tempo
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:3200/status || exit 1
interval: 5s
timeout: 5s
retries: 3
grafana:
image: grafana/grafana:11.4.0
volumes:
- ./configuration/grafana/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
- grafana-data:/var/lib/grafana
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
ports:
- "3000:3000"
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1
interval: 5s
timeout: 5s
retries: 3
volumes:
loki-data:
prometheus-data:
tempo-data:
grafana-data: