42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
services:
|
|
prometheus:
|
|
image: prom/prometheus
|
|
container_name: prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
ports:
|
|
- 9090:9090
|
|
volumes:
|
|
- ./prometheus:/etc/prometheus
|
|
|
|
grafana:
|
|
image: grafana/grafana
|
|
container_name: grafana
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
- GF_SECURITY_ADMIN_USER=admin
|
|
- GF_SECURITY_ADMIN_PASSWORD=grafana
|
|
volumes:
|
|
- ./grafana:/etc/grafana/provisioning/datasources
|
|
|
|
otel-collector:
|
|
image: otel/opentelemetry-collector:latest
|
|
container_name: otel-collector
|
|
command: ["--config=/etc/otel-collector-config.yaml"]
|
|
volumes:
|
|
- ./otel/otel-collector-config.yaml:/etc/otel-collector-config.yaml
|
|
ports:
|
|
- "4317:4317" # OTLP gRPC receiver
|
|
- "8889:8889" # Prometheus exposed port
|
|
depends_on:
|
|
- jaeger
|
|
|
|
jaeger:
|
|
image: jaegertracing/all-in-one:latest
|
|
container_name: jaeger
|
|
environment:
|
|
- COLLECTOR_OTLP_ENABLED=true
|
|
- COLLECTOR_OTLP_GRPC_HOST_PORT=:4317
|
|
ports:
|
|
- "16686:16686" |