问题描述
我有 documentation 所说的配置
exporters:
jaeger:
endpoint: "ipv4:firstHost:14250,secondHost:14250"
balancer_name: "round_robin"
收集器产生错误。 如何配置收集器以平衡导出器以在不同后端发送请求?
info exporterhelper/queued_retry.go:276 导出失败。将在间隔后重试请求。 {"component_kind": "exporter","component_type": "jaeger","component_name": "jaeger","error": "无法通过 Jaeger 导出器推送跟踪数据:rpc 错误:代码 = 不可用 desc = 上次连接错误: 连接错误: desc = "transport: Error while dialing dial tcp: address ipv4:firstHost:14250,secondHost:14250: too many冒号"","interval": "30.456378855s"}
解决方法
它在 golang grpc 客户端中不起作用。我使用了 openTelemetry load balancing 另一种选择 - 使用 kubernetes 来平衡对后端的请求。