-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.observability.yml
79 lines (73 loc) · 2.26 KB
/
docker-compose.observability.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
services:
grafana:
container_name: god-grafana
image: grafana/grafana
restart: always
environment:
# these are the defaults, you should probably change them in deployment
GF_SECURITY_ADMIN_USER: ${GRAFANA_USERNAME:-admin}
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD:-admin}
GF_INSTALL_PLUGINS: redis-datasource
volumes:
- ./config/grafana-datasource.yaml:/etc/grafana/provisioning/datasources/otel.yaml
- ./config/grafana-dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml
- ./config/grafana-validator-general.json:/var/lib/grafana/dashboards/grafana-validator-general.json
- ./config/grafana-validator-errors.json:/var/lib/grafana/dashboards/grafana-validator-errors.json
ports:
- ${GRAFANA_PORT:-3000}:3000
otel-collector:
container_name: god-otel-collector
image: otel/opentelemetry-collector-contrib:0.106.1
restart: always
volumes:
- ./config/otel-config.yaml:/etc/otelcol-contrib/config.yaml
ports:
- "0.0.0.0:4317:4317"
tempo-init:
scale: 0
container_name: god-tempo-init
image: grafana/tempo:latest
restart: on-failure
user: root
entrypoint:
- "chown"
- "10001:10001"
- "/var/tempo"
volumes:
- tempo:/var/tempo
tempo:
scale: 0
container_name: god-tempo
image: grafana/tempo:latest
restart: always
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- tempo:/var/tempo
- ./config/tempo-config.yaml:/etc/tempo.yaml
depends_on:
- tempo-init
- redis
loki:
container_name: god-loki
image: grafana/loki:main
restart: always
volumes:
- loki:/loki
- ./config/loki-config.yaml:/etc/loki/local-config.yaml
prometheus:
container_name: god-prometheus
image: prom/prometheus
restart: always
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=7d
- --web.console.libraries=/usr/share/prometheus/console_libraries
- --web.console.templates=/usr/share/prometheus/console
volumes:
- prometheus:/prometheus
- ./config/prometheus-config.yaml:/etc/prometheus/prometheus.yml
volumes:
tempo:
loki:
prometheus: