File tree Expand file tree Collapse file tree 3 files changed +50
-3
lines changed Expand file tree Collapse file tree 3 files changed +50
-3
lines changed Original file line number Diff line number Diff line change 11version : " 3.7"
2+ configs :
3+ opentelemetry-collector-config :
4+ file : ./opentelemetry-collector-config.yaml
25services :
36 jaeger :
47 image : jaegertracing/all-in-one:1.60.0
@@ -9,8 +12,7 @@ services:
912 - public
1013 - monitored
1114 environment :
12- MEMORY_MAX_TRACES : 200
13- COLLECTOR_ZIPKIN_HTTP_PORT : 9411
15+ MEMORY_MAX_TRACES : 10000
1416 deploy :
1517 labels :
1618 - traefik.enable=true
@@ -29,7 +31,23 @@ services:
2931 reservations :
3032 memory : 64M
3133 cpus : " 0.1"
32-
34+ otel-collector :
35+ image : otel/opentelemetry-collector-contrib:0.105.0
36+ configs :
37+ - source : opentelemetry-collector-config
38+ target : /etc/otel/config.yaml
39+ hostname : " {{.Node.Hostname}}-{{.Task.Slot}}"
40+ command :
41+ - " --config=/etc/otel/config.yaml"
42+ ports :
43+ - " 4318:4318" # OTLP HTTP receiver
44+ networks :
45+ - public
46+ - monitored
47+ environment :
48+ TRACING_OTEL_COLLECTOR_BATCH_SIZE : ${TRACING_OTEL_COLLECTOR_BATCH_SIZE}
49+ TRACING_OTEL_COLLECTOR_SAMPLING_PERCENTAGE : ${TRACING_OTEL_COLLECTOR_SAMPLING_PERCENTAGE}
50+ TRACING_OTEL_COLLECTOR_EXPORTER_ENDPOINT : ${TRACING_OTEL_COLLECTOR_EXPORTER_ENDPOINT}
3351networks :
3452 public :
3553 external : true
Original file line number Diff line number Diff line change 1+ receivers :
2+ otlp :
3+ protocols :
4+ grpc :
5+ endpoint : 0.0.0.0:4317 # Default endpoint for OTLP over gRPC
6+ http :
7+ endpoint : 0.0.0.0:4318 # Default endpoint for OTLP over HTTP
8+ exporters :
9+ otlphttp :
10+ endpoint : ${TRACING_OTEL_COLLECTOR_EXPORTER_ENDPOINT} # Adjust to your Jaeger endpoint
11+ debug :
12+ verbosity : detailed
13+ service :
14+ pipelines :
15+ traces :
16+ receivers : [otlp]
17+ exporters : [otlphttp,debug]
18+ telemetry :
19+ logs :
20+ level : " debug"
21+ processors :
22+ batch :
23+ timeout : 5s
24+ send_batch_size : ${TRACING_OTEL_COLLECTOR_BATCH_SIZE}
25+ probabilistic_sampler :
26+ sampling_percentage : ${TRACING_OTEL_COLLECTOR_SAMPLING_PERCENTAGE}
Original file line number Diff line number Diff line change 11MONITORING_DOMAIN = ${ MONITORING_DOMAIN }
22PUBLIC_NETWORK = ${ PUBLIC_NETWORK }
33MONITORED_NETWORK = ${ MONITORED_NETWORK }
4+ TRACING_OTEL_COLLECTOR_BATCH_SIZE = ${ TRACING_OTEL_COLLECTOR_BATCH_SIZE }
5+ TRACING_OTEL_COLLECTOR_SAMPLING_PERCENTAGE = ${ TRACING_OTEL_COLLECTOR_SAMPLING_PERCENTAGE }
6+ TRACING_OTEL_COLLECTOR_EXPORTER_ENDPOINT = ${ TRACING_OTEL_COLLECTOR_EXPORTER_ENDPOINT }
You can’t perform that action at this time.
0 commit comments