-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.observability.yml
More file actions
84 lines (78 loc) · 2.54 KB
/
Copy pathdocker-compose.observability.yml
File metadata and controls
84 lines (78 loc) · 2.54 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
# Observability overlay for Cloud Health Office local development.
#
# Usage:
# docker compose --profile core --profile finance \
# -f docker-compose.yml -f docker-compose.observability.yml up -d
#
# Service URLs:
# Jaeger UI: http://localhost:16686
# Prometheus: http://localhost:9090
# Grafana: http://localhost:3000 (admin / admin)
#
# Services receive OTLP config via environment variables so the
# application code exports traces/metrics to the Jaeger OTLP endpoint.
services:
# ── Jaeger (all-in-one: collector + query + UI) ──
jaeger:
image: jaegertracing/all-in-one:1.55
ports:
- "16686:16686" # Jaeger UI
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
environment:
- COLLECTOR_OTLP_ENABLED=true
# ── Prometheus ──
prometheus:
image: prom/prometheus:v2.51.0
ports:
- "9090:9090"
volumes:
- ./infrastructure/observability/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on:
- claims-service
- benefit-plan-service
- payment-service
# ── Grafana ──
grafana:
image: grafana/grafana:10.4.1
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
volumes:
- ./infrastructure/observability/grafana/provisioning:/etc/grafana/provisioning:ro
- ./infrastructure/observability/grafana/dashboards:/var/lib/grafana/dashboards:ro
depends_on:
- prometheus
- jaeger
# ── Override service environment to enable OTLP export ──
claims-service:
environment:
- Observability__ServiceName=claims-service
- Observability__OtlpEndpoint=http://jaeger:4317
- Observability__EnableConsole=false
- Observability__Environment=Development
depends_on:
jaeger:
condition: service_started
benefit-plan-service:
environment:
- Observability__ServiceName=benefit-plan-service
- Observability__OtlpEndpoint=http://jaeger:4317
- Observability__EnableConsole=false
- Observability__Environment=Development
depends_on:
jaeger:
condition: service_started
payment-service:
environment:
- Observability__ServiceName=payment-service
- Observability__OtlpEndpoint=http://jaeger:4317
- Observability__EnableConsole=false
- Observability__Environment=Development
depends_on:
jaeger:
condition: service_started