-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.monitoring.yml
More file actions
132 lines (125 loc) · 3.82 KB
/
docker-compose.monitoring.yml
File metadata and controls
132 lines (125 loc) · 3.82 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
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
services:
prometheus:
image: prom/prometheus:latest
container_name: bioetl-prometheus
ports:
- "9090:9090"
volumes:
- ./grafana/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./grafana/prometheus-rules:/etc/prometheus/rules:ro
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.enable-admin-api'
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:9090/-/healthy"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
networks:
- monitoring
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
pushgateway:
image: prom/pushgateway:latest
container_name: bioetl-pushgateway
ports:
- "9091:9091"
networks:
- monitoring
restart: unless-stopped
loki:
image: grafana/loki:3.7.0
container_name: bioetl-loki
profiles: ["tracing"]
ports:
- "3100:3100"
command:
- "-config.file=/etc/loki/config.yml"
volumes:
- ./grafana/loki-config.yml:/etc/loki/config.yml:ro
- loki-data:/loki
networks:
- monitoring
restart: unless-stopped
promtail:
image: grafana/promtail:3.6.8
container_name: bioetl-promtail
profiles: ["tracing"]
command:
- "-config.file=/etc/promtail/config.yml"
volumes:
- ./grafana/promtail-config.yml:/etc/promtail/config.yml:ro
- ./logs:/workspace-logs:ro
depends_on:
- loki
networks:
- monitoring
restart: unless-stopped
tempo:
image: grafana/tempo:2.10.3
container_name: bioetl-tempo
profiles: ["tracing"]
user: "0"
ports:
- "3200:3200"
- "4317:4317"
command:
- "-config.file=/etc/tempo/config.yml"
volumes:
- ./grafana/tempo.yml:/etc/tempo/config.yml:ro
- tempo-data:/tmp/tempo
networks:
- monitoring
restart: unless-stopped
grafana:
image: grafana/grafana:12.0.0
container_name: bioetl-grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD}
- GF_USERS_ALLOW_SIGN_UP=false
- GF_METRICS_ENABLED=true
# Grafana 12+ startup plugin installer flag.
- GF_PLUGINS_PREINSTALL=yesoreyeram-infinity-datasource
# Backward compatibility with older Grafana container startup scripts.
- GF_INSTALL_PLUGINS=yesoreyeram-infinity-datasource
- GF_LOG_LEVEL=info
- GF_SERVER_ROOT_URL=http://localhost:3000
- GF_SERVER_SERVE_FROM_SUB_PATH=false
- BIOETL_ENABLE_TRACING_DATASOURCES=${BIOETL_ENABLE_TRACING_DATASOURCES:-false}
- BIOETL_QUARANTINE_EXPLORER_URL=${BIOETL_QUARANTINE_EXPLORER_URL:-http://host.docker.internal:8081}
volumes:
- grafana-data:/var/lib/grafana
- ./grafana/provisioning/datasources-core:/etc/bioetl-grafana/datasources-core:ro
- ./grafana/provisioning/datasources-tracing:/etc/bioetl-grafana/datasources-tracing:ro
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
- ./grafana/dashboards:/var/lib/grafana/dashboards:ro
- ./grafana/scripts/bootstrap-datasources.sh:/usr/local/bin/bioetl-bootstrap-grafana.sh:ro
entrypoint: ["/bin/sh", "/usr/local/bin/bioetl-bootstrap-grafana.sh"]
depends_on:
prometheus:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- monitoring
restart: unless-stopped
volumes:
prometheus-data:
grafana-data:
loki-data:
tempo-data:
networks:
monitoring:
driver: bridge