Skip to content

Commit 9a5cb20

Browse files
Explain OTEL_EXPORTER_OTLP_HEADERS
Explain how the value of `OTEL_EXPORTER_OTLP_HEADERS` is derived.
1 parent 57b8c2f commit 9a5cb20

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,17 @@ SDKs](https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/#push
6060
```sh
6161
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
6262
export OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp-gateway-prod-eu-west-0.grafana.net/otlp"
63-
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic a-secret-token"
63+
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic base64-encoded-string"
6464
```
6565

66+
> [!TIP]
67+
> The token for `Basic` authentication is the base64-encoded value of a Grafana
68+
> Cloud Instance ID and an API key separated by a `:`.
69+
>
70+
> For example, if your Grafana Cloud Instance ID is `12345` and your API key is
71+
> `glc_secret`, the value for `OTEL_EXPORTER_OTLP_HEADERS` would be
72+
> `Authorization=Basic MTIzNDU6Z2xjX3NlY3JldA==`
73+
6674
## Documentation
6775

6876
For detailed documentation and setup instructions, refer to the following

0 commit comments

Comments
 (0)