Skip to content

Commit 19e5905

Browse files
committed
use headless service with DNS mode in K8S(open-telemetry#27014)
1 parent 3d94380 commit 19e5905

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

exporter/loadbalancingexporter/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The options for `routing_key` are: `service`, `traceID`, `metric` (metric name),
3131

3232
If no `routing_key` is configured, the default routing mechanism is `traceID` for traces, while `service` is the default for metrics. This means that spans belonging to the same `traceID` (or `service.name`, when `service` is used as the `routing_key`) will be sent to the same backend.
3333

34-
It requires a source of backend information to be provided: static, with a fixed list of backends, or DNS, with a hostname that will resolve to all IP addresses to use. The DNS resolver will periodically check for updates.
34+
It requires a source of backend information to be provided: static, with a fixed list of backends, or DNS, with a hostname that will resolve to all IP addresses to use (such as a Kubernetes headless service). The DNS resolver will periodically check for updates.
3535

3636
Note that either the Trace ID or Service name is used for the decision on which backend to use: the actual backend load isn't taken into consideration. Even though this load-balancer won't do round-robin balancing of the batches, the load distribution should be very similar among backends with a standard deviation under 5% at the current configuration.
3737

@@ -93,6 +93,9 @@ exporters:
9393
- backend-2:4317
9494
- backend-3:4317
9595
- backend-4:4317
96+
# Notice to config a headless service DNS in Kubernetes
97+
# dns:
98+
# hostname: otelcol-headless.observability.svc.cluster.local
9699

97100
service:
98101
pipelines:

0 commit comments

Comments
 (0)