Export to Dynatrace via OpenTelemetry

Send data from APImetrics to Dynatrace with our OpenTelemetry Webhook

Our OpenTelemetry Webhook allows you to send your API traffic to Dynatrace.

Configure Dynatrace to Receive Webhooks from APIContext

Generate an Access Token for APIContext in your Dynatrace environment, with the following scopes: "Ingest logs," "Ingest metrics," and "Ingest OpenTelemetry traces." Securely copy the generated access token.


Create an OpenTelemetry Webhook

Go to the Alerting section of the sidebar and select Alerts & Webhooks.

From here, select the Add new alert button.

Assign a descriptive name to the webhook, such as "Dynatrace Conformance Events."
Then, select the alert type from the drop down list of "OpenTelemetry (Conformance Events)."

In the URL field, enter the following URL (replacing with your environment ID):

https\://<Dynatrace-Environment-ID>.live.dynatrace.com/api/v2/otlp/v1/logs

In the HTTP Header 1 field, add the following HTTP header (replacing with the access token value copied from Dynatrace):

Authorization: Api-Token <Access-Token>

Then click Save to save the new alert.


Validation

Your data will start flowing to Dynatrce on the next scheduled conformance check. To trigger a manual conformance check, navigate to the Conformance tab, and click "Evaluate Most Recent Calls" on the bottom right corner of the page. Then in the Dynatrace portal, open the "Logs" application, and click “Run Query” to view the ingested logs.