Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exporters::loadbalancing: requires a non-empty "endpoint" in version 0.95.0 #31388

Closed
firecow opened this issue Feb 22, 2024 · 2 comments
Closed
Labels
bug Something isn't working needs triage New item requiring triage

Comments

@firecow
Copy link

firecow commented Feb 22, 2024

Component(s)

No response

What happened?

Description

validate reports exporters::loadbalancing: requires a non-empty "endpoint" in version 0.95.0

Steps to Reproduce

Run otel-collector validate on a config file that has a loadbalancing exporter

Expected Result

I would expect the validation to succeed.

Actual Result

It throws a validation error

Collector version

0.95.0

Environment information

Environment

Docker image from dockerhub otel/opentelemetry-collector-contrib:0.95.0

OpenTelemetry Collector configuration

---
receivers:
  otlp:
    protocols:
      http:

exporters:
  debug:

  otlphttp:
    endpoint: ${env:ELASTIC_APM_ENDPOINT}
    headers:
      "Authorization": "Bearer ${env:ELASTIC_APM_SECRET_TOKEN}"

  loadbalancing:
    routing_key: traceID
    protocol:
      otlp:
        timeout: 1s
        tls:
          insecure: true
    resolver:
      dns:
        hostname: otel_collector_layer_two

processors:
  batch:

extensions:

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: []
      exporters: [loadbalancing]
    metrics:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlphttp]
    logs:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlphttp]

Log output

Reinitialized existing Git repository in /data/gitlab-runner/builds/W9JEWgWC/0/cego/otel-collector/.git/
Checking out 6903c0c8 as detached HEAD (ref is renovate/otel-opentelemetry-collector-contrib-0.x)...
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:08
$ docker run -q -e ELASTIC_APM_ENDPOINT -e ELASTIC_APM_SECRET_TOKEN --rm -v $(pwd)/collector-config-layer-one.yml:/etc/collector-config-layer-one.yml ${OTEL_COLLECTOR_IMAGE_REF} --config=/etc/collector-config-layer-one.yml validate
Error: exporters::loadbalancing: requires a non-empty "endpoint"
2024/02/22 19:07:12 collector server run finished with error: exporters::loadbalancing: requires a non-empty "endpoint"

Additional context

I've read the release notes and looked at the loadbalancing examples, but no where is endpoint mentioned in conjunction with loadbalancing.

@firecow firecow added bug Something isn't working needs triage New item requiring triage labels Feb 22, 2024
@firecow firecow changed the title exporters::loadbalancing: requires a non-empty "endpoint" in versoin 0.95.0 exporters::loadbalancing: requires a non-empty "endpoint" in version 0.95.0 Feb 22, 2024
@willthames
Copy link
Contributor

Looks like this is the same as #31371, fixed (but not yet released) in #31381

@crobert-1
Copy link
Member

Closing as duplicate of #31371 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage New item requiring triage
Projects
None yet
Development

No branches or pull requests

3 participants