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

Sample config from sumologic extension doesn't work #32375

Closed
dmolenda-sumo opened this issue Apr 15, 2024 · 3 comments · Fixed by #32383
Closed

Sample config from sumologic extension doesn't work #32375

dmolenda-sumo opened this issue Apr 15, 2024 · 3 comments · Fixed by #32383
Labels
bug Something isn't working extension/sumologic

Comments

@dmolenda-sumo
Copy link
Contributor

Component(s)

extension/sumologic

What happened?

Description

I try tu run collector with this config: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/sumologicextension#example-config. It didn't start correctly.

Steps to Reproduce

Try tu run collector with this config: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/sumologicextension#example-config

extensions:
  sumologic:
    installation_token: <token>
    collector_name: my_collector
    time_zone: Europe/Warsaw

receivers:
  hostmetrics:
    collection_interval: 30s
    scrapers:
      load:

processors:

exporters:
  sumologic:
    auth:
      authenticator: sumologic # Specify the name of the authenticator extension

service:
  extensions: [sumologic]
  pipelines:
    metrics:
      receivers: [hostmetrics]
      processors: []
      exporters: [sumologic]

Expected Result

Collector should start

Actual Result

Error:

Error: invalid configuration: exporters::sumologic: endpoint is not set
2024/04/15 11:27:02 collector server run finished with error: invalid configuration: exporters::sumologic: endpoint is not set

Collector version

latest

Environment information

Environment

OS: darwin/amd64
Compiler(if manually compiled): go version go1.21.7

OpenTelemetry Collector configuration

extensions:
  sumologic:
    installation_token: <token>
    collector_name: my_collector
    time_zone: Europe/Warsaw

receivers:
  hostmetrics:
    collection_interval: 30s
    scrapers:
      load:

processors:

exporters:
  sumologic:
    auth:
      authenticator: sumologic # Specify the name of the authenticator extension

service:
  extensions: [sumologic]
  pipelines:
    metrics:
      receivers: [hostmetrics]
      processors: []
      exporters: [sumologic]

Log output

Error: invalid configuration: exporters::sumologic: endpoint is not set
2024/04/15 11:27:02 collector server run finished with error: invalid configuration: exporters::sumologic: endpoint is not set

Additional context

No response

@dmolenda-sumo dmolenda-sumo added bug Something isn't working needs triage New item requiring triage labels Apr 15, 2024
Copy link
Contributor

Pinging code owners:

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

@sumo-drosiek
Copy link
Member

Exporter has not been fully moved yet, therefore it's not supported on it's end yet

@crobert-1
Copy link
Member

Removing needs triage based on code owner's response and opened PR.

@crobert-1 crobert-1 removed the needs triage New item requiring triage label Apr 15, 2024
andrzej-stencel pushed a commit that referenced this issue Apr 17, 2024
… obtain endpoint (#32383)

**Description:**

Use Sumo Logic Extension for authentication and to obtain the endpoint.
This is part of #31479 to make #32315 smaller, therefore it may have
some unused code (like `getSignalURL`). Also OTLP format is not
supported yet for neither of the formats

It also partially fixes #32375 (partially because as long as there is no
a otlp support, data won't be pushed to Sumo Logic)

**Link to tracking Issue:** #31479

**Testing:**

- unit tests
- manual tests

**Documentation:**

- ensures that Sumo Logic Extension documentation is valid

---------

Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extension/sumologic
Projects
None yet
3 participants