Deploy OpenTelemetry Collector

Thx @axw, I was able to use docker-compose (Elastic + OP Collector) and send traces to APM with Java OpenTelemetry lib (without agent).

What about metrics?
I tried to extend collector config with:

metrics:
receivers: [otlp]
exporters: [elastic]
processors: [batch, queued_retry]

But getting error in collector logs:

application run finished with error: cannot setup pipelines: cannot build builtExporters: pipeline "metrics" of data type "metrics" has an exporter "elastic", which does not support that data type

Do I use the wrong config or this functionality not implemented yet?

Thx