forked from solutions-plug/predictIQ
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.tracing.yml
More file actions
79 lines (75 loc) · 2.14 KB
/
Copy pathdocker-compose.tracing.yml
File metadata and controls
79 lines (75 loc) · 2.14 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
version: '3.8'
services:
jaeger:
image: jaegertracing/all-in-one:latest
container_name: predictiq-jaeger
ports:
- "16686:16686" # Jaeger UI
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
- "14250:14250" # Jaeger gRPC
- "14268:14268" # Jaeger HTTP
environment:
- COLLECTOR_OTLP_ENABLED=true
- LOG_LEVEL=info
# Resource limits: Jaeger can consume significant memory with high trace volume
# CPU: 1 core, Memory: 1GB (adjust based on trace volume)
deploy:
resources:
limits:
cpus: '1'
memory: 1G
reservations:
cpus: '0.5'
memory: 512M
networks:
- predictiq-tracing
zipkin:
image: openzipkin/zipkin:latest
container_name: predictiq-zipkin
ports:
- "9411:9411" # Zipkin UI and API
# Resource limits: Zipkin is lightweight but should be bounded
# CPU: 0.5 core, Memory: 512MB
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.25'
memory: 256M
networks:
- predictiq-tracing
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
container_name: predictiq-otel-collector
command: ["--config=/etc/otel-collector-config.yml"]
volumes:
- ./otel-collector-config.yml:/etc/otel-collector-config.yml
ports:
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
- "8888:8888" # Prometheus metrics
- "13133:13133" # Health check
environment:
- JAEGER_ENDPOINT=${JAEGER_ENDPOINT:-jaeger:14250}
- ZIPKIN_ENDPOINT=${ZIPKIN_ENDPOINT:-http://zipkin:9411/api/v2/spans}
# Resource limits: OTEL collector processes and exports traces
# CPU: 0.5 core, Memory: 512MB (adjust based on throughput)
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.25'
memory: 256M
depends_on:
- jaeger
- zipkin
networks:
- predictiq-tracing
networks:
predictiq-tracing:
driver: bridge