nils_dev
nils_dev

Reputation: 1

OpenTelemetry export to ElasticAPM

I'm running the OpenTelemetry demo (webshop) on localhost:8080 and want to push data to ElasticAPM. I've also set up the APM Server.

This is my otelcol-configj-extras.yml file:

exporters: otlp: endpoint: http://localhost:9200

service: pipelines: traces: receivers: [otlp] processors: [batch] exporters: [otlp]

And this is the apm-server.yml:

output.elasticsearch: hosts: ["localhost:9200"]

I'm not receiving any data from the demo application.

I expected data to show up in ElasticAPM. But there is no data.

Upvotes: 0

Views: 1737

Answers (1)

Gil Raphaelli
Gil Raphaelli

Reputation: 146

Your configuration is instructing the otel collector to export directly to elasticsearch. If you haven't modified apm-server.yml to listen on a non-default address it will be on localhost:8200. You should be able to update your otelcol-configj-extras.yml to:

exporters:
  otlp:
    endpoint: localhost:8200
    # uncomment the following if TLS is not enable in APM Server
    # tls:
    #   insecure: true

Upvotes: 1

Related Questions