-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (57 loc) · 2 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
version: '3.9'
services:
# References
# https://opentelemetry.io/docs/collector/configuration/
# https://grafana.com/blog/2022/05/10/how-to-collect-prometheus-metrics-with-the-opentelemetry-collector-and-grafana/
otel-collector:
image: otel/opentelemetry-collector:0.74.0
command: [--config=/etc/otel-collector-config.yaml]
volumes:
- ./config/opentelemetry/collector/otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- 1888:1888 # pprof extension
- 8888:8888 # Prometheus metrics exposed by the collector
- 8889:8889 # Prometheus exporter metrics
- 13133:13133 # health_check extension
- 4317:4317 # OTLP gRPC receiver
- 4318:4318 # OTLP http receiver
- 55679:55679 # zpages extension
prometheus-alertmanager:
image: prom/alertmanager:v0.25.0
command: [ --config.file=/etc/alertmanager.yml ]
volumes:
- ./config/prometheus-alertmanager/alertmanager.yml:/etc/alertmanager.yml
ports:
- 9093:9093
prometheus:
image: prom/prometheus:v2.43.0
ports:
- 9090:9090
volumes:
- ./config/prometheus:/etc/prometheus
depends_on:
otel-collector:
condition: service_started
prometheus-alertmanager:
condition: service_started
# References:
# https://grafana.com/docs/grafana/latest/setup-grafana/installation/docker/
# https://grafana.com/docs/grafana/latest/setup-grafana/configure-docker/
# https://grafana.com/docs/grafana/latest/administration/provisioning/#data-sources
# https://grafana.com/docs/grafana/latest/datasources/prometheus/
prometheus-pushgateway:
image: prom/pushgateway:v1.5.1
ports:
- 9091:9091
depends_on:
prometheus:
condition: service_started
grafana:
image: grafana/grafana:8.5.22
ports:
- 3000:3000
volumes:
- ./config/grafana/provisioning/datasources/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
depends_on:
prometheus:
condition: service_started