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

Unable to start otelcol-contrib with opensearch exporter enabled #30907

Closed
AmythD opened this issue Jan 31, 2024 · 3 comments
Closed

Unable to start otelcol-contrib with opensearch exporter enabled #30907

AmythD opened this issue Jan 31, 2024 · 3 comments

Comments

@AmythD
Copy link

AmythD commented Jan 31, 2024

Component(s)

exporter/opensearch on otelcol-contrib version 0.93.0

Describe the issue you're reporting

I'm getting an error when trying to start otelcol-contrib using below config, any ideas on what could be wrong?

 receivers:
   otlp:
     protocols:
       grpc:
         endpoint: 0.0.0.0:4317
       http:
         endpoint: 0.0.0.0:4318
 extensions:
   basicauth/client:
   client_auth:
     username: user
     password: user
 exporters:
   opensearch/trace:
     http:
       endpoint: https://opensearch:9200
       auth:
         authenticator: basicauth/client
 service:
   pipelines:
     traces:
       receivers: [otlp]
       exporters: [opensearch/trace]
       processors: [batch]

Error message that I'm seeing :

  • error decoding 'extensions': unknown type: "client_auth" for id: "client_auth" (valid values: [k8s_observer memory_ballast bearertokenauth ecs_task_observer ecs_observer host_observer headers_setter jaegerremotesampling docker_observer oidc pprof file_storage db_storage zpages http_forwarder oauth2client health_check sigv4auth asapclient awsproxy basicauth])
@AmythD AmythD added the needs triage New item requiring triage label Jan 31, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@crobert-1
Copy link
Member

Helly @AmythD, the error message is saying that there's no extension named client_auth. It looks like the problem is indentation in your config file.

Original config:

extensions:
   basicauth/client:
   client_auth:
     username: user
     password: user

Should instead be:

extensions:
  basicauth/client:
    client_auth:
      username: user
      password: user

client_auth is a configuration option within the basic_auth extension, not its own extension.

Copy link
Contributor

Pinging code owners for extension/basicauth: @jpkrohling @frzifus. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants