-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
OpenSearch exporter support #7905
Comments
In case anyone is wondering, here's the exact error message:
I know this because I set everything up only to find that I can't use it because of this. I guess this is my +1 😭 Thanks for the hard work y'all are putting into OpenTelemetry. I've been following the project since the first announcement, and I'm looking forward to being a user of it someday. |
Hi, our storage solution is based on opendistro, so we have similar issue with elastic rest client. I already forked elasticsearchexporter https://github.com/binjip978/opentelemetry-collector-contrib/tree/opensearch-exporter/exporter/opensearchexporter and it works for our case. But it still require proper documentation and some factoring on common code in both exporters. @jpkrohling not sure what "sponsor needed" is about, but I could provide a PR. |
|
@r3h0 Nice! This is exactly what I was looking for. I tried to build your fork of the repo, but am not able to configure the opensearch-exporter properly. You mentioned that it works for you. How did you configure the exporter? What key did you use in your Thanks in advance for your kind help. Cheers, Tomas. |
Not me, @TomasLongo. @binjip978's the one who built it |
Hey everyone. We successfully integrated the opensearchexporter into the otel-collector based on the fork of @binjip978. We would be more than happy to contribute it back to the project if there is any interest. |
@TomasLongo there is interest, for sure. The exporter needs a sponsor, per what jpkrohling said above. Maybe you could read through the contributing docs and see if you are a good fit. |
Hi everyone, there does not seem to be much progress on #10206. We really like the feature and tested the branch successfully. What can be done, to help the integration? |
Hi there, @TomasLongo |
Hi @TomasLongo |
@jpkrohling we would really like to integrate this exported into the codebase. #10206 was provided from a fork we used internally. Can you assists @TomasLongo in finding a sponsor for this issue? Maybe @dmitryax would be a possibility, since he already gave a lot of comments to #10206? If necessary, we can create another issue, as you suggested using https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#adding-new-components. However, this will be very redundant to this very issue. Please advise, how you want us to proceed with the Opensearch exporter. |
@open-telemetry/collector-contrib-approvers: is anyone interested in sponsoring this? Perhaps someone from AWS (@Aneurysm9)? |
Currently, if we want to send our traces to OpenSearch and display them using the Trace Analytics plugin for OpenSearch Dashboard, we need to use OTel Collector + Data Prepper. I believe data is slightly transformed by Data Prepper in order to be displayed by the Trace Analytics plugin. Should the new OpenSearch exporter have a configuration to allow the traces to be displayed by this plugin? I believe the ElasticSearch exporter has the mapping mode configuration option to send raw traces or to make slight transformations to the data. This would be something similar. |
@spakinz , When sending trace data to OpenSearch using the OTel Collector and Data Prepper, Data Prepper does perform some transformations to make the traces display correctly in the Observability plugin. It performs two sets of changes: 1. It enriches each span with overall trace data; and 2) It creates a service map which goes into a second index. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
#10206 looks to have stalled, but there are other people willing to work on it (we would still need a sponsor though). Would it be best to open a new PR? |
OpenSearch accepts OTLP via DataPrepper and recommends that as an ingestion mechanism. |
@Aneurysm9 that's true for traces and metrics but not for logs. I believe it would still be beneficial to have an Opensearch output as this then allows user to have a single agent if they are using Opensearch rather than making it an exception where you have to use DataPrepper. |
+1 |
Hi everyone, do we have any idea if the OpenSearch exporter will be officially added one day or not ? |
I'm still trying to chase this up, we need to find someone to sponsor the work. I currently have a branch updated for v0.71.0. After doing that I've been wondering if it would be worthwhile having a shared objModel for elasticsearch and opensearch as these are currently identical. |
@dbason thanks a lot for your contribution Dan, hope someone will help you to sponsor your work. |
I did, you need to use a replaces section in the ocb config as follows: exporters:
- gomod: go.opentelemetry.io/collector/exporter/loggingexporter v0.71.0
- gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.71.0
- gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/zipkinexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opensearchexporter v0.71.0
replaces:
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opensearchexporter => github.com/dbason/opentelemetry-collector-contrib/exporter/opensearchexporter v0.0.0-20230220215934-fc1091406dd0 |
@dbason Hi Dan, Thank you very much for this, it's work perfectly with the last version of OpenSearch. |
Hi @dbason. Thanks for your update on the OpenSearch exporter. I'm trying it out with traces: service:
pipelines:
traces:
receivers:
- otlp
exporters:
- opensearch but opentelemetry-collector fails with:
I guess traces are not supported? Any idea how I should go about adding support for traces? |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
Part of open-telemetry/opentelemetry-collector#7895 Follow up to open-telemetry/opentelemetry-collector#7904 Signed-off-by: Alex Boten <aboten@lightstep.com>
Adding initial set-up for OpenSearch exporter addition. Future PRs will include adding functionality to the exporter, code coverage and e2e tests. Broken up for easier review. [New component proposal.](#23611) Start of resolution of #7905. Will come in future PR to 80+% coverage. Break-up of #23045 --------- Signed-off-by: Max Ksyunz <max.ksyunz@improving.com>
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Is your feature request related to a problem? Please describe.
The existing elasticsearch exporter can not be used with OpenSearch as the used elasticsearch client library checks if the target backend is Elasticsearch. The support for OpenSearch should be introduced.
Describe the solution you'd like
The OpenSearch client could be integrated into the existing elasticsearch exporter and a configuration parameter could be introduced to switch clients.
Describe alternatives you've considered
An alternative would be to create a dedicated opensearch exporter and reimplement/reuse the elasticsearch exporter logic with just the client replaced.
Additional context
n/a
The text was updated successfully, but these errors were encountered: