Showing results for 
Show  only  | Search instead for 
Did you mean: 

opentelemetry collector config using otlp exporter for traces


I am trying to use  opentelemetry otlp exporter (using grpc) to export traces to Dynatrace and here is my config for the exporter


    endpoint: https://{environmentid}
      Authorization: Api-Token <api_token>
    wait_for_ready: false
      enabled: false
      insecure: false
      insecure_skip_verify: true


However, i get timeout error. I tried using https://{environmentid}  endpoint and got host not found error.

Please note that otlp exporter expect a port at the end of the endpoint string (separated by column)

I appreciate if you could share an example config with otlp exporter (not otlphttp exporter) to be used to export traces to Dynatrace. Thank you


Dynatrace Helper
Dynatrace Helper

The two error messages you posted would suggest a network issue. Did you verify if the network is working, in particular DNS?

Of course, it could also be a configuration issue, which breaks the hostname (and subsequently DNS resolution). I am not too familiar with the precise syntax of the configuration file and not entirely sure if endpoint is supposed to point to a hostname or a URL.

If it is the latter, I'd assume your configuration is all right (though you said you want to use gRPC, right?). The second URL (with the path) should not be correct, however, as you need to specify the port after the hostname, not after path.

Dynatrace Helper
Dynatrace Helper

I was just informed that the backend would not support gRPC yet, so you'd need to use HTTP, in which case endpoint takes a proper URL, which should be the base one. Have you tried this already?

endpoint: https://{environmentid}

Featured Posts