-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.observability.yml
More file actions
95 lines (91 loc) · 2.72 KB
/
Copy pathdocker-compose.observability.yml
File metadata and controls
95 lines (91 loc) · 2.72 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
# Backend apparatus, never a scenario service set. Config binds are anchored
# to the trusted engine root when composing an external scenario bundle.
services:
aptl-otel-collector:
profiles: [otel]
container_name: aptl-otel-collector
image: otel/opentelemetry-collector-contrib:0.123.0
restart: unless-stopped
ports:
- "127.0.0.1:${APTL_HP_APTL_OTEL_COLLECTOR_4317:-4317}:4317"
- "127.0.0.1:${APTL_HP_APTL_OTEL_COLLECTOR_4318:-4318}:4318"
volumes:
- type: bind
source: ./config/otel/otel-collector-config.yaml
target: /etc/otelcol-contrib/config.yaml
read_only: true
healthcheck:
test: ["CMD", "/otelcol-contrib", "validate", "--config", "/etc/otelcol-contrib/config.yaml"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
networks: [aptl-observability]
depends_on: [aptl-tempo]
deploy:
resources:
limits:
memory: 256m
logging:
driver: json-file
options: {max-size: 10m, max-file: "2"}
aptl-tempo:
profiles: [otel]
container_name: aptl-tempo
image: grafana/tempo:2.7.2
restart: unless-stopped
command: ["-config.file=/etc/tempo/tempo.yaml"]
ports:
- "127.0.0.1:${APTL_HP_APTL_TEMPO_3200:-3200}:3200"
volumes:
- type: bind
source: ./config/otel/tempo-config.yaml
target: /etc/tempo/tempo.yaml
read_only: true
- type: volume
source: tempo_data
target: /var/tempo
networks: [aptl-observability]
deploy:
resources:
limits:
memory: 512m
logging:
driver: json-file
options: {max-size: 10m, max-file: "2"}
aptl-grafana-otel:
profiles: [otel]
container_name: aptl-grafana-otel
image: grafana/grafana:11.6.0
restart: unless-stopped
ports:
- "127.0.0.1:${APTL_HP_APTL_GRAFANA_OTEL_3000:-3100}:3000"
environment:
GF_SECURITY_ADMIN_USER: "${GRAFANA_ADMIN_USER:-admin}"
GF_SECURITY_ADMIN_PASSWORD: "${GRAFANA_ADMIN_PASSWORD:?Grafana credential required}"
GF_USERS_ALLOW_SIGN_UP: "false"
GF_ANALYTICS_REPORTING_ENABLED: "false"
GF_ANALYTICS_CHECK_FOR_UPDATES: "false"
volumes:
- type: bind
source: ./config/otel/grafana-datasources.yaml
target: /etc/grafana/provisioning/datasources/tempo.yaml
read_only: true
- type: volume
source: grafana_otel_data
target: /var/lib/grafana
networks: [aptl-observability]
depends_on: [aptl-tempo]
deploy:
resources:
limits:
memory: 256m
logging:
driver: json-file
options: {max-size: 10m, max-file: "2"}
networks:
aptl-observability:
internal: true
volumes:
tempo_data:
grafana_otel_data: