open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
2.96k stars 2.3k forks source link

[exporter/elasticsearch] Metrics support in non-ECS modes #33819

Closed carsonip closed 1 month ago

carsonip commented 3 months ago

Component(s)

exporter/elasticsearch

Is your feature request related to a problem? Please describe.

As identified in https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/33794 , the metrics support is only mapping fields in ECS mode. It should also support other mapping modes.

Additionally, in https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/33794 the data stream fields are added as attributes to simplify the implementation. Ideally they should be added to the ES doc directly instead of polluting the attributes in the otel structures.

Describe the solution you'd like

Support other mapping modes.

Describe alternatives you've considered

No response

Additional context

No response

github-actions[bot] commented 3 months ago

Pinging code owners:

carsonip commented 1 month ago

Close via https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/34248