Files
crmdesk/deploy/docker/compose/otelcol/otelcol-config.yaml
T
2026-09-19 16:35:35 +08:00

36 lines
1.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# OTel Collector 配置:接收 OTLPtraces/metrics),traces 转发 Zipkin
# Zipkin 地址使用 compose 网络内的服务名(zipkin-bytedesk:9411);
# 若未启动 Zipkin./start.sh zipkin),转发失败仅记录日志,不影响接收。
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
batch:
timeout: 5s
send_batch_size: 512
exporters:
# 转发到 compose 网络内的 Zipkin 容器(需 ./start.sh zipkin 一并启动)
zipkin:
endpoint: http://zipkin-bytedesk:9411/api/v2/spans
# 调试用:把收到的 spans 打到控制台(默认注释,需要时取消注释)
# debug:
# verbosity: basic
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [zipkin]
# metrics 如需转发,可加 metrics pipelineexporters 用 otlp/zipkin 不适用,需 prometheus 或 debug
# metrics:
# receivers: [otlp]
# processors: [batch]
# exporters: [debug]