-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.observability.yml
More file actions
70 lines (65 loc) · 1.88 KB
/
Copy pathdocker-compose.observability.yml
File metadata and controls
70 lines (65 loc) · 1.88 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
# docker-compose.observability.yml
# SigNoz observability stack with OpenTelemetry collector.
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.observability.yml up -d
#
# This adds an OTel collector that scrapes the backend /metrics endpoint
# and forwards telemetry data to SigNoz for visualization.
version: "3.9"
services:
otel-collector:
image: signoz/signoz-otel-collector:latest
container_name: finima-otel-collector
command: ["--config=/etc/otel/config.yaml"]
volumes:
- ./config/otel-collector-config.yaml:/etc/otel/config.yaml:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
environment:
SIGNOZ_ENDPOINT: ${SIGNOZ_ENDPOINT:-http://signoz:4317}
depends_on:
signoz:
condition: service_healthy
restart: unless-stopped
signoz:
image: signoz/signoz:latest
container_name: finima-signoz
ports:
- "3301:3301" # SigNoz UI
volumes:
- signoz_data:/var/lib/signoz
- ./config/signoz/dashboards:/var/lib/signoz/dashboards:ro
environment:
SIGNOZ_DATA_SOURCE: clickhouse
CLICKHOUSE_HOST: clickhouse
CLICKHOUSE_PORT: 9000
depends_on:
clickhouse:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3301/api/v1/health"]
interval: 30s
timeout: 10s
retries: 5
restart: unless-stopped
clickhouse:
image: clickhouse/clickhouse-server:24-alpine
container_name: finima-clickhouse
volumes:
- clickhouse_data:/var/lib/clickhouse
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: ["CMD", "clickhouse-client", "--query", "SELECT 1"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
signoz_data:
clickhouse_data: