Skip to content

Incorrect example configuration for LoadBalancingExporter? #42813

@alexchowle

Description

@alexchowle

Component(s)

exporter/loadbalancing

Describe the issue you're reporting

The loadbalancingexporter has an examples directory with one specifically demonstrating use of the k8s resolver. Said example:

...
exporters:
      loadbalancing:
        protocol:
          otlp:
            tls:
              insecure: true
        resolver:
          k8s:
            service: backends-collector-headless.observability
...

I was under the impression that the k8s resolver was for standard k8s Service resources, not headless services. The documentation on the official website also states:

You can configure the load-balancing exporter to use the list of hosts behind a given DNS A entry, such as a Kubernetes headless service.

This leads me to the following conclusions:

  • headless = use dns resolver
  • standard service = use k8s resolver

Should the k8s example imply that a headless Service should be used?

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions