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

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

Closed
zendesk-shweta opened this issue Jan 26, 2024 · 3 comments
Labels
needs triage New item requiring triage

Comments

@zendesk-shweta
Copy link

Component(s)

No response

Describe the issue you're reporting

I am using this binary otelcol-contrib_0.93.0_darwin_amd64.tar.gz to create docker image of otel collector. Image is built and pushe dto ECR successfully , however it gives this error " * error decoding 'exporters': unknown type: "datadog" for id: "datadog" (valid values: [file kafka prometheus prometheusremotewrite logging otlp otlphttp debug opencensus zipkin])" when i tried to add datadog as exporter in config file. Below is my datadog file , not sure what i am missing on :

extensions:
memory_ballast:
size_mib: 128
zpages:
endpoint: localhost:55679

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

processors:
batch:
memory_limiter:
# 75% of maximum memory up to 2G
limit_mib: 256
# 25% of limit up to 2G
spike_limit_mib: 200
check_interval: 5s

exporters:
debug:
verbosity: detailed
datadog:
api:
key: " "

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

extensions: [memory_ballast, zpages]

@zendesk-shweta zendesk-shweta added the needs triage New item requiring triage label Jan 26, 2024
@crobert-1
Copy link
Member

Hello @zendesk-shweta, it looks like when creating your docker image only a subset of exporters are being included in the image. Can you share how you're creating your docker image from the downloaded tar file?

Is there a reason why you're creating your own instead of using the published image?

@zendesk-shweta
Copy link
Author

This is my docker file. We need to do some customisation so we are trying to build image from binary. Kindly suggest what is missing in my docker file while creating the image.
####################
FROM ubuntu:22.04

WORKDIR /app
RUN apt update && apt install curl tar
&& curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.91.0/otelcol_0.91.0_linux_amd64.tar.gz
&& tar -xvf otelcol_0.91.0_linux_amd64.tar.gz
&& rm otelcol_0.91.0_linux_amd64.tar.gz
#COPY ./otelcol .
RUN chmod a+x ./otelcol
COPY ./config.yaml .
ENTRYPOINT ["/app/otelcol", "--config", "/app/config.yaml"]
#CMD ["./otelcol", "--config", "config.yaml"]

@crobert-1
Copy link
Member

Thanks for sharing your dockerfile! It looks like the problem is this:

curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.91.0/otelcol_0.91.0_linux_amd64.tar.gz
&& tar -xvf otelcol_0.91.0_linux_amd64.tar.gz
&& rm otelcol_0.91.0_linux_amd64.tar.gz

This is actually downloading the core distribution of the OpenTelemetry Collector, rather than contrib. If you update this link to https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.91.0/otelcol-contrib_0.91.0_linux_amd64.tar.gz, and update your following commands to match the different file name, the exporter should be available. 👍

djaglowski pushed a commit that referenced this issue Jan 31, 2024
…tch core and contrib (#30832)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
While investigating #30791 I noticed some components are included in
releases but their `metadata.yaml` files don't actually include the
distribution their included in. These updates should mean metadata is
now up to date with what's included in the
[core](https://github.com/open-telemetry/opentelemetry-collector-releases/blob/main/distributions/otelcol/manifest.yaml)
and
[contrib](https://github.com/open-telemetry/opentelemetry-collector-releases/blob/main/distributions/otelcol-contrib/manifest.yaml)
releases.
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this issue Feb 1, 2024
…tch core and contrib (open-telemetry#30832)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
While investigating open-telemetry#30791 I noticed some components are included in
releases but their `metadata.yaml` files don't actually include the
distribution their included in. These updates should mean metadata is
now up to date with what's included in the
[core](https://github.com/open-telemetry/opentelemetry-collector-releases/blob/main/distributions/otelcol/manifest.yaml)
and
[contrib](https://github.com/open-telemetry/opentelemetry-collector-releases/blob/main/distributions/otelcol-contrib/manifest.yaml)
releases.
anthoai97 pushed a commit to anthoai97/opentelemetry-collector-contrib that referenced this issue Feb 12, 2024
…tch core and contrib (open-telemetry#30832)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
While investigating open-telemetry#30791 I noticed some components are included in
releases but their `metadata.yaml` files don't actually include the
distribution their included in. These updates should mean metadata is
now up to date with what's included in the
[core](https://github.com/open-telemetry/opentelemetry-collector-releases/blob/main/distributions/otelcol/manifest.yaml)
and
[contrib](https://github.com/open-telemetry/opentelemetry-collector-releases/blob/main/distributions/otelcol-contrib/manifest.yaml)
releases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage New item requiring triage
Projects
None yet
Development

No branches or pull requests

2 participants