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 in contrib collector 0.27: unknown exporters type "elasticsearch" #3537

Closed
PCDiver opened this issue May 26, 2021 · 9 comments
Closed
Labels
bug Something isn't working

Comments

@PCDiver
Copy link

PCDiver commented May 26, 2021

Describe the bug
I downloaded release 0.27 from the contrib collector (windows version). When I start the collector I get the error: cannot load configuration: unknown exporters type "elasticsearch" for elasticsearch. Is the elasticsearch exporter for logs already in this release? If not, when will it be?

Steps to reproduce
run: .\otelcontribcol_windows_amd64.exe --config=config.yaml

What did you expect to see?
A clear and concise description of what you expected to see.

What did you see instead?
S C:\Program Files\OpenTelemetry\collectoragent> .\otelcontribcol_windows_amd64.exe --config=config.yaml
2021-05-26T05:16:55.568+0200 info service/application.go:277 Starting otelcontribcol... {"Version": "v0.27.0", "NumCPU": 4}
2021-05-26T05:16:55.569+0200 info service/application.go:185 Setting up own telemetry...
2021-05-26T05:16:55.570+0200 info service/telemetry.go:98 Serving Prometheus metrics {"address": ":8888", "level": 0, "service.instance.id": "3d858d74-ed08-489b-a55c-bff28481603d"}
2021-05-26T05:16:55.570+0200 info service/application.go:220 Loading configuration...
Error: cannot load configuration: unknown exporters type "elasticsearch" for elasticsearch
2021/05/26 05:16:55 application run finished with error: cannot load configuration: unknown exporters type "elasticsearch" for elasticsearch

What version did you use?
Version: 0.27

What config did you use?
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:55680
exporters:
elasticsearch:
endpoints: [http://elk1.submerge.local:9200]
insecure: true
service:
pipelines:
logs:
receivers: [otlp]
exporters: [elasticsearch]

Environment
OS: Windows 10
Compiler(if manually compiled): (e.g., "go 14.2")

Additional context
Add any other context about the problem here.

@PCDiver PCDiver added the bug Something isn't working label May 26, 2021
@gramidt
Copy link
Member

gramidt commented Jun 8, 2021

@urso @faec @blakerouse - I quickly took a look and noticed that the "elasticsearchexporter" was not in the components file. Is this intentional?

@PCDiver - I'm guessing it's still in development and not ready to be released yet. The code owners mentioned above will better know the current status.

@urso
Copy link

urso commented Jun 10, 2021

Yes, it is still in development. Although events can already be send, not all feature can be configured, which will result in a panic.

@vchirikov
Copy link

I'm waiting for the same thing.

Issues for tracking:
#1800
#4610

@zhangjiabin1010
Copy link

waiting

@tomatopunk
Copy link

tomatopunk commented Jan 4, 2022

The exporter is not registered with the otel collector contrib distribution yet (it is not compiled into the collector), because it is not finished (and not tested) yet.

@jpkrohling
Copy link
Member

It's being added to the contrib distribution as part of #6002 and open-telemetry/opentelemetry-collector-releases#50

@vincentfree
Copy link
Contributor

Yes, it is still in development. Although events can already be send, not all feature can be configured, which will result in a panic.

In my experience it doesn't start when you use something like metrics instead of logs or traces.

I am going to contribute with a colleague to this exporter in the future since we could really use the metrics functionality with elastic search.

Could you describe what is missing so we could take a look into it and help out?
@urso

@vincentfree
Copy link
Contributor

It's being added to the contrib distribution as part of #6002 and open-telemetry/opentelemetry-collector-releases#50

I was not aware of the exporter not being ready for prime time. One of my goals was adding metrics to the elasticsearch exporter but if more is needed I can also take a look into getting it production ready.

@codeboten
Copy link
Contributor

The initial issue has been addressed as the component is now part of the contrib distribution. Please open follow up items for any additional issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants