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

Issue with Datadog Exporter Configuration in OpenTelemetry #30686

Closed
ezopstheta opened this issue Jan 19, 2024 · 7 comments
Closed

Issue with Datadog Exporter Configuration in OpenTelemetry #30686

ezopstheta opened this issue Jan 19, 2024 · 7 comments

Comments

@ezopstheta
Copy link

Component(s)

exporter/datadog

Describe the issue you're reporting

After carefully reviewing and understanding the documentation, I proceeded to download and configure OpenTelemetry on the host machine running the Datadog agent. Following the download, I configured the .yaml file and executed the command 'otelcol --config=my_configuration_file.yaml.' Unfortunately, I encountered the following error after multiple attempts:

error decoding 'exporters': unknown type: "datadog" for id: "datadog" (valid values: [prometheus debug otlp file kafka opencensus prometheusremotewrite zipkin logging otlphttp])

I am currently debugging this issue to resolve it promptly.

YAML Configuration:

receivers:
  otlp:
    protocols:
      http:
        endpoint: "localhost:4318"
      grpc:
        endpoint: "localhost:4317"

processors:
  batch:
    send_batch_max_size: 1000
    send_batch_size: 100
    timeout: 10s

exporters:
  datadogexporter:
    api:
      site: datadoghq.com
      key: my_key

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

Note: The objective is to configure OpenTelemetry with Datadog to act as an intermediary for sending logs from Hasura Cloud for visualization in Datadog. The priority is to address the configuration issue with the Datadog exporter.

@ezopstheta ezopstheta added the needs triage New item requiring triage label Jan 19, 2024
@github-actions github-actions bot added the exporter/datadog Datadog components label Jan 19, 2024
Copy link
Contributor

Pinging code owners:

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

@songy23
Copy link
Member

songy23 commented Jan 19, 2024

I think the issue is the exporter name doesn't match the one in the pipelines. You can change

exporters:
  datadogexporter:
...

to

exporters:
  datadog:
...

@songy23 songy23 added waiting for author and removed needs triage New item requiring triage labels Jan 19, 2024
@ezopstheta
Copy link
Author

the error still persists :(

@songy23
Copy link
Member

songy23 commented Jan 20, 2024

What opentelemetry collector distro do you use? Does the distro have datadog exporter?

@ezopstheta
Copy link
Author

I appreciate your prompt response. Yes, I am using the OpenTelemetry collector on Linux, and I installed it by downloading the RPM package for version 0.92.0 from the official releases:

wget https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.92.0/otelcol_0.92.0_linux_amd64.rpm

Additionally, I followed the Datadog documentation for the OpenTelemetry collector exporter at https://docs.datadoghq.com/opentelemetry/collector_exporter/?tab=onahost as a reference.

I seem to be encountering an issue with the Datadog exporter configuration. Could you kindly provide assistance or a step-by-step guide to ensure that I am configuring it correctly? Any insights you can offer would be greatly appreciated.

In addition to the installation of OpenTelemetry on the instance running the Datadog agent, I have configured the YAML file. This entire process aims to set up the use of OpenTelemetry originating from Hasura.

To provide more context, the key configuration involves specifying the endpoints, and I need assistance in ensuring that these endpoints are correctly configured. Below is an overview of the relevant configuration points:
Screenshot 2024-01-15 at 2 25 26 PM

Thank you for your help.

@mackjmr
Copy link
Member

mackjmr commented Jan 22, 2024

@ezopstheta the datadog exporter is part of the contrib distro https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.92.0/otelcol-contrib_0.92.0_linux_amd64.rpm, whereas you are using the core distro https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.92.0/otelcol_0.92.0_linux_amd64.rpm (note the -contrib)

@ezopstheta
Copy link
Author

thats worked, thanks!

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

3 participants