OpenTelemetry metrics ingest API
Ingests OpenTelemetry metrics into Dynatrace. Use this endpoint as a target for OpenTelemetry exporters. For more information, see Export with OTLP.
The request consumes an application/x-protobuf
payload.
POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/otlp/v1/metrics |
Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/otlp/v1/metrics |
Authentication
To execute this request, you need an access token with metrics.ingest
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
body | byte[] | An ExportMetricsServiceRequest message in binary protobuf format. | body | required |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | - | The request has been received and will be processed. |
400 | - | The request could not be processed. This may happen if the message is malformed. |
413 | - | The OTLP message exceeded the payload size limit. |
500 | - | The request could not be processed due to an internal server error. |
503 | - | The service is currently unavailable. This may happen if the module is paused. |
4XX | ErrorEnvelope | Client side error. |
5XX | ErrorEnvelope | Server side error. |