You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workers/observability/exporting-opentelemetry-data/grafana-cloud.mdx
+13-16Lines changed: 13 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Grafana Cloud is a fully managed observability platform that provides visualizat
12
12
13
13
This guide will walk you through configuring Cloudflare Workers to export OpenTelemetry-compliant traces and logs to your Grafana Cloud stack.
14
14
15
-

15
+

16
16
17
17
## Prerequisites
18
18
@@ -21,26 +21,23 @@ Before you begin, ensure you have:
21
21
- An active [Grafana Cloud account](https://grafana.com/auth/sign-up/create-user) (free tier available)
22
22
- A deployed Worker that you want to monitor
23
23
24
-
## Step 1: Access the OpenTelemetry setup guide
24
+
## Step 1: Access the Grafana Cloud Credentials
25
25
26
-
1. Log in to your [Grafana Cloud portal](https://grafana.com/)
26
+
1. Log in to your [Grafana Cloud stack](https://grafana.com/)
27
27
2. From your organization's home page, navigate to **Connections** → **Add new connection**
28
-
3. Search for "OpenTelemetry" and select **OpenTelemetry (OTLP)**
29
-
4. Select **Quickstart** then select **JavaScript**
30
-
6. Click **Create a new token**
31
-
7. Enter a name for your token (e.g., `cloudflare-workers-otel`) and click **create token**
32
-
8. Click on **Close** without copying the token
33
-
9. Copy and Save the value for `OTEL_EXPORTER_OTLP_ENDPOINT` and `OTEL_EXPORTER_OTLP_HEADERS` in the `Environment variables` code block as the OTel endpoint and as the Auth header value respectively
34
-
28
+
3. Search for "Cloudflare" and select **Cloudflare workers**
29
+
4. Follow the instructions to create a **Create a new token** and access the grafana Cloud OTLP Credentials for Traces and Logs
30
+
* Make sure you note your OTLP endpoint, authorization header name, and authorization header value as these will be used in Step 2
35
31
36
32
## Step 2: Set up destination
37
33
1. Navigate to your Cloudflare account's [Workers Observability](https://dash.cloudflare.com/?to=/:account/workers-and-pages/observability/pipelines) section
38
34
2. Click **Add destination** and configure a destination name (e.g. `grafana-tracing`)
39
-
3. From Grafana, copy your Otel endpoint, auth header, and auth value
40
-
* Your OTEL endpoint will look like `https://otlp-gateway-prod-us-east-2.grafana.net/otlp` (append `/v1/traces` for traces and `/v1/logs` for logs)
41
-
* Your custom header should include:
42
-
* Your auth header name `Authorization`
43
-
* Your auth header value `Basic MTMxxx...`
35
+
3. Configuring the Trace and Logs destination:
36
+
* For the endpoint, use the OTLP endpoint obtained in Step 1
37
+
* Your OTEL endpoint will look like `https://otlp-gateway-prod-us-east-2.grafana.net/otlp` (append `/v1/traces` for traces and `/v1/logs` for logs)
38
+
* For authentication, set the:
39
+
* Header name as `Authorization`
40
+
* Header value to the value of your auth header value from Step 1. Your auth header value will look like `Basic MTMxxx...`
44
41
45
42
## Step 3: Configure your Worker
46
43
@@ -67,7 +64,7 @@ With your destination created in the Cloudflare dashboard, update your Worker's
67
64
68
65
</WranglerConfig>
69
66
70
-
After updating your configuration, deploy your Worker for the changes to take effect.
67
+
After updating your configuration, deploy your Worker for the changes to take effect. If not using the Grafana Cloud Integration for Cloudflare workers, You can also import the pre-built dashboard from [here](https://github.com/grafana/jsonnet-libs/tree/master/cloudflare-workers-mixin/dashboards)
71
68
72
69
:::note
73
70
It may take a few minutes after deployment for data to appear in Grafana Cloud.
0 commit comments