Skip to content

otel collector is not working #28553

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

Closed
gyliu513 opened this issue Oct 24, 2023 · 6 comments · Fixed by #28566
Closed

otel collector is not working #28553

gyliu513 opened this issue Oct 24, 2023 · 6 comments · Fixed by #28566
Labels
bug Something isn't working examples/demo needs triage New item requiring triage

Comments

@gyliu513
Copy link
Member

Component(s)

examples/demo

What happened?

Description

Steps to Reproduce

goto examples/demo, then docker compose up -d, check log of otel collector, some errors as follows:

(ycliu) guangyaliu@Guangyas-MacBook-Pro-2 langchain % docker ps
CONTAINER ID   IMAGE                                 COMMAND                  CREATED          STATUS                          PORTS                                                                                                                                      NAMES
66a6b037af73   demo-demo-client                      "/app/main"              36 minutes ago   Restarting (1) 45 seconds ago                                                                                                                                              demo-demo-client-1
6983ae7d937f   demo-demo-server                      "/app/main"              36 minutes ago   Up 36 minutes                   0.0.0.0:57153->7080/tcp                                                                                                                    demo-demo-server-1
ca5558f91e0d   otel/opentelemetry-collector:0.85.0   "/otelcol --config=/…"   36 minutes ago   Restarting (1) 25 seconds ago                                                                                                                                              demo-otel-collector-1
73dddc56a909   prom/prometheus:latest                "/bin/prometheus --c…"   36 minutes ago   Up 36 minutes                   0.0.0.0:9090->9090/tcp                                                                                                                     demo-prometheus-1
d9cb283aa1be   openzipkin/zipkin:latest              "start-zipkin"           36 minutes ago   Up 36 minutes (healthy)         9410/tcp, 0.0.0.0:9411->9411/tcp                                                                                                           demo-zipkin-all-in-one-1
57660ecb2fd8   jaegertracing/all-in-one:latest       "/go/bin/all-in-one-…"   36 minutes ago   Up 36 minutes                   4317-4318/tcp, 5775/udp, 5778/tcp, 9411/tcp, 6831-6832/udp, 0.0.0.0:16686->16686/tcp, 0.0.0.0:57149->14250/tcp, 0.0.0.0:57150->14268/tcp   demo-jaeger-all-in-one-1
56c219b92480   semitechnologies/weaviate:1.21.2      "/bin/weaviate --hos…"   13 days ago      Up 13 days                      0.0.0.0:8080->8080/tcp                                                                                                                     weav-weaviate-1
(ycliu) guangyaliu@Guangyas-MacBook-Pro-2 langchain % docker logs -f ca5558f91e0d
Error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:

* error decoding 'exporters': unknown type: "debug" for id: "debug" (valid values: [opencensus prometheusremotewrite logging otlphttp file kafka prometheus zipkin otlp])
2023/10/23 18:22:25 collector server run finished with error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:

* error decoding 'exporters': unknown type: "debug" for id: "debug" (valid values: [opencensus prometheusremotewrite logging otlphttp file kafka prometheus zipkin otlp])
Error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:

* error decoding 'exporters': unknown type: "debug" for id: "debug" (valid values: [file opencensus zipkin prometheusremotewrite logging otlp otlphttp kafka prometheus])
2023/10/23 18:22:26 collector server run finished with error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:

* error decoding 'exporters': unknown type: "debug" for id: "debug" (valid values: [file opencensus zipkin prometheusremotewrite logging otlp otlphttp kafka prometheus])
Error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:

* error decoding 'exporters': unknown type: "debug" for id: "debug" (valid values: [otlphttp kafka opencensus prometheus zipkin logging otlp file prometheusremotewrite])
2023/10/23 18:22:27 collector server run finished with error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:

* error decoding 'exporters': unknown type: "debug" for id: "debug" (valid values: [otlphttp kafka opencensus prometheus zipkin logging otlp file prometheusremotewrite])
Error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:

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

Expected Result

Actual Result

Collector version

0.85.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

$ uname -a
Darwin Guangyas-MacBook-Pro-2.local 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:42:42 PDT 2023; root:xnu-10002.1.13~1/RELEASE_X86_64 x86_64

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@gyliu513 gyliu513 added bug Something isn't working needs triage New item requiring triage labels Oct 24, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

  • examples/demo: @open-telemetry/collector-approvers

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

@yantingqiu
Copy link

yantingqiu commented Oct 24, 2023

Could you please share your configuration file?
Your issue seems to be similar to this: #27851 (comment)

@gyliu513
Copy link
Member Author

@yantingqiu here are all the configuration file https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/examples/demo , I did not make any changes.

@yantingqiu
Copy link

yantingqiu commented Oct 24, 2023

@gyliu513 To enable the debug exporter, you need to ensure that the version of otel-collector is 0.86.0 or higher. Maybe you should consider updating the image version of otel-collector to be at least 0.86.0.

@gyliu513
Copy link
Member Author

@yantingqiu it worked with 0.88.0 as the PR #28566

@crobert-1
Copy link
Member

I'm going to close as it looks like this has been resolved, but please let me know if I've misunderstood. Happy to see things are working now!

mx-psi added a commit that referenced this issue Oct 24, 2023
**Description:** 

Bumps image to latest released version to have the `debug` exporter
available.

**Link to tracking Issue:** Fixes #28553
sigilioso pushed a commit to carlossscastro/opentelemetry-collector-contrib that referenced this issue Oct 27, 2023
**Description:** 

Bumps image to latest released version to have the `debug` exporter
available.

**Link to tracking Issue:** Fixes open-telemetry#28553
jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this issue Nov 12, 2023
**Description:** 

Bumps image to latest released version to have the `debug` exporter
available.

**Link to tracking Issue:** Fixes open-telemetry#28553
RoryCrispin pushed a commit to ClickHouse/opentelemetry-collector-contrib that referenced this issue Nov 24, 2023
**Description:** 

Bumps image to latest released version to have the `debug` exporter
available.

**Link to tracking Issue:** Fixes open-telemetry#28553
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working examples/demo needs triage New item requiring triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants