I have installed apm-server to show traces and metrics that are being exported from otel. I can see my service on the APM on kibana but cant see the traces that are exported by otel. while seeing logs of otel collector on docker i found following log:
info exporterhelper/queued_retry.go:430 Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "traces", "name": "otlp/elastic", "error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp: lookup apm-server on 127.0.0.11:53: no such host\"", "interval": "6.545859934s"}
warn zapgrpc/zapgrpc.go:195 [core] [Channel #6 SubChannel #7] grpc: addrConn.createTransport failed to connect to {Addr: "apm-server:8200", ServerName: "apm-server:8200", }. Err: connection error: desc = "transport: Error while dialing: dial tcp: lookup apm-server on 127.0.0.11:53: no such host" {"grpc_log": true}
my apm-server.yml file:
output.elasticsearch:
hosts: ['localhost:9200']
username: elastic
password: changeme
my otel config file:
exporters:
otlp:
endpoint: 'http://localhost:8200'
tls:
insecure: true
headers:
Authorization: 'Bearer '
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [zipkin, logging, otlp]
metrics:
receivers: [otlp]
exporters: [logging, otlp]
logs:
receivers: [otlp]
exporters: [logging, otlp]