Grafana Cloud provides visualization, alerting, and telemetry analytics. It accepts Cloudflare telemetry through the OpenTelemetry Protocol (OTLP).
Export Cloudflare traces to Grafana Tempo and logs to Grafana Loki.
This guide configures Grafana Cloud to receive Cloudflare traces and logs.
Before you begin, you need an active Grafana Cloud account ↗︎. You also need Cloudflare logs or traces to export.
- Log in to the Grafana Cloud portal ↗︎.
- From your organization home page, go to Connections > Add new connection.
- Search for
OpenTelemetry, then select OpenTelemetry (OTLP). - Select Quickstart, then select JavaScript.
- Select Create a new token.
- Enter a token name, such as
cloudflare-otel. - Select Create token, then select Close.
- Copy the
OTEL_EXPORTER_OTLP_ENDPOINTvalue from Environment variables. - Copy the
OTEL_EXPORTER_OTLP_HEADERSvalue from the same block.
-
In the Cloudflare dashboard, go to Observability > Destinations.
Go to OpenTelemetry ↗ -
Select Add destination.
-
Enter a descriptive destination name, such as
grafana-traces. -
For Destination type, select Traces or Logs. Create a separate destination for each type you export.
-
Enter the Grafana OTLP endpoint for your telemetry type:
- Traces: Append
/v1/tracesto the endpoint. - Logs: Append
/v1/logsto the endpoint.
- Traces: Append
-
Add the Grafana authentication header:
- Header name:
Authorization - Header value: The Basic authentication value from Grafana
- Header name:
-
Select Save.
The endpoint resembles https://otlp-gateway-prod-us-east-2.grafana.net/otlp.
Creating a destination does not start exporting telemetry. To export Workers Logs or Workers Traces, configure OpenTelemetry export for your Worker. To export Cloudflare Traces, configure export for your domain.
Data may take several minutes to appear in Grafana Cloud.