Dynatrace exporter (via OTLP)
Configure the Dynatrace exporter for metrics
Enable and configure the OTLP exporter for metrics in the Apollo Router for use with Dynatrace.
For general tracing configuration, refer to Router Metrics Configuration.
Dynatrace configuration
To configure the router:
- Enable the OTLP exporter
- Set the
protocol
ashttp
; Dynatrace doesn't currently supportgrpc
- Provide your Dynatrace endpoint
- Provide your Dynatrace API token in the
Authorization
header; the header should start withApi-token
and then your Dynatrace token
router.yaml
telemetry:exporters:metrics:otlp:enabled: true# Endpoint for your region.endpoint: <dynatrace-endpoint>protocol: httphttp:headers:Authorization: Api-Token <dynatrace-token>
ⓘ NOTE
You must specify protocol: http
or the exporter will fail to connect to Dynatrace. Additionally, if your Dynatrace endpoint does not contain a port, you must append :443
to the endpoint. For example: https://subdomain.live.dynatrace.com:443/api/v2/otlp/v1/traces
.
For more details about Dynatrace configuration, see Dynatrace's docs on OpenTelemetry configuration.