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
temporality: delta
(Using Delta is required as Cumulative temporality is not supported by Dynatrace)Set the
protocol
ashttp
(Dynatrace doesn't currently support gRPC)Set the
endpoint
to your Dynatrace OpenTelemetry metrics endpoint (e.g., ensuring that it contains{your-environment-id}
in the hostname and ends in/api/v2/otlp/v1/metrics
)Provide your Dynatrace API token in the
Authorization
header (the header should start withApi-Token
and then your Dynatrace token
For example:
1telemetry:
2 exporters:
3 metrics:
4 otlp:
5 enabled: true
6 temporality: delta
7 # Endpoint for your region.
8 endpoint: <dynatrace-endpoint>
9 protocol: http
10 http:
11 headers:
12 Authorization: Api-Token <dynatrace-token>
protocol: http
or the exporter will fail to connect to Dynatrace. You must use temporality: delta
or some metrics will fail to be delivered to your deployment.
Additionally, if your Dynatrace endpoint does not contain a port, you must explicitly include :443
as the port after the host address. For example: https://subdomain.live.dynatrace.com:443/api/v2/otlp/v1/metrics
.For more details about Dynatrace configuration, see Dynatrace's docs on OpenTelemetry configuration.