Skip to content

Commit 1c91ff5

Browse files
Explain OTEL_EXPORTER_OTLP_HEADERS
Explain how the value of `OTEL_EXPORTER_OTLP_HEADERS` is derived.
1 parent a2a92aa commit 1c91ff5

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
@@ -58,9 +58,17 @@ For details on how to obtain those values, refer to
5858
```sh
5959
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
6060
export OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp-gateway-prod-eu-west-0.grafana.net/otlp"
61-
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic a-secret-token"
61+
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic base64-encoded-string"
6262
```
6363

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

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

0 commit comments

Comments
 (0)