2025-11-15 09:46:29 +08:00
|
|
|
receivers:
|
|
|
|
|
otlp:
|
|
|
|
|
protocols:
|
|
|
|
|
http:
|
|
|
|
|
endpoint: 0.0.0.0:4318
|
2025-11-18 11:47:35 +08:00
|
|
|
max_request_body_size: 20971520 # 20MB
|
2025-11-15 09:46:29 +08:00
|
|
|
grpc:
|
|
|
|
|
endpoint: 0.0.0.0:4317
|
2025-11-18 11:47:35 +08:00
|
|
|
max_concurrent_streams: 16
|
|
|
|
|
|
|
|
|
|
processors:
|
|
|
|
|
batch:
|
|
|
|
|
send_batch_size: 1024
|
|
|
|
|
timeout: 1s
|
|
|
|
|
send_batch_max_size: 2048
|
|
|
|
|
|
|
|
|
|
resource:
|
|
|
|
|
attributes:
|
|
|
|
|
- key: service.instance.id
|
|
|
|
|
value: "${POD_NAME}"
|
|
|
|
|
action: upsert
|
|
|
|
|
- key: k8s.pod.name
|
|
|
|
|
value: "${POD_NAME}"
|
|
|
|
|
action: upsert
|
|
|
|
|
- key: k8s.namespace.name
|
|
|
|
|
value: "${NAMESPACE}"
|
|
|
|
|
action: upsert
|
2025-11-15 09:46:29 +08:00
|
|
|
|
|
|
|
|
exporters:
|
|
|
|
|
logging:
|
|
|
|
|
loglevel: info
|
2025-11-18 11:47:35 +08:00
|
|
|
sampling_initial: 10
|
|
|
|
|
sampling_thereafter: 100
|
|
|
|
|
|
2025-11-17 17:53:24 +08:00
|
|
|
otlphttp/jaeger:
|
|
|
|
|
endpoint: http://jaeger:4318
|
2025-11-15 12:08:26 +08:00
|
|
|
tls:
|
|
|
|
|
insecure: true
|
2025-11-18 11:47:35 +08:00
|
|
|
sending_queue:
|
|
|
|
|
queue_size: 10000
|
|
|
|
|
retry_on_failure:
|
|
|
|
|
enabled: true
|
|
|
|
|
initial_interval: 5s
|
|
|
|
|
max_interval: 30s
|
|
|
|
|
max_elapsed_time: 300s
|
|
|
|
|
|
2025-11-17 16:25:23 +08:00
|
|
|
prometheus:
|
2025-11-17 17:53:24 +08:00
|
|
|
endpoint: "0.0.0.0:8889"
|
2025-11-17 16:25:23 +08:00
|
|
|
const_labels:
|
|
|
|
|
source: "otel-collector"
|
2025-11-15 09:46:29 +08:00
|
|
|
|
|
|
|
|
service:
|
|
|
|
|
pipelines:
|
|
|
|
|
traces:
|
|
|
|
|
receivers: [otlp]
|
2025-11-18 11:47:35 +08:00
|
|
|
processors: [resource, batch]
|
2025-11-17 17:53:24 +08:00
|
|
|
exporters: [logging, otlphttp/jaeger]
|
2025-11-15 09:46:29 +08:00
|
|
|
metrics:
|
|
|
|
|
receivers: [otlp]
|
2025-11-18 11:47:35 +08:00
|
|
|
processors: [resource, batch]
|
2025-11-17 16:25:23 +08:00
|
|
|
exporters: [logging, prometheus]
|
2025-11-15 09:46:29 +08:00
|
|
|
|