Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,28 @@ To send data to the {{motlp}} from the {{edot}} Collector or the contrib Collect
```yaml
exporters:
otlp:
endpoint: https://<motlp-endpoint>
endpoint: https://<motlp-endpoint> <1>
headers:
Authorization: ApiKey <your-api-key>
Authorization: ApiKey <your-api-key> <2>
```

1. The endpoint retrieved at [step 2](#locate-your-motlp)
2. The API key created at [step 3](#create-an-api-key)

Set the API key as an environment variable or directly in the configuration as shown in the example.
:::

:::{tab-item} OpenTelemetry SDK example
To send data to the {{motlp}} from {{edot}} SDKs or contrib SDKs, set the following variables in your application's environment:

```bash
export OTEL_EXPORTER_OTLP_ENDPOINT="https://<motlp-endpoint>"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=ApiKey <your-api-key>"
export OTEL_EXPORTER_OTLP_ENDPOINT="https://<motlp-endpoint>" <1>
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=ApiKey <your-api-key>" <2>
```

1. The endpoint retrieved at [step 2](#locate-your-motlp)
2. The API key created at [step 3](#create-an-api-key)

Avoid extra spaces in the header. For Python SDKs replace any spaces with `%20`. For example:

```
Expand All @@ -141,11 +147,14 @@ Mount the secret as an environment variable or file, then reference it in your O
```yaml
exporters:
otlp:
endpoint: https://<motlp-endpoint>
endpoint: https://<motlp-endpoint> <1>
headers:
Authorization: ${API_KEY}
Authorization: ${API_KEY} <2>
```

1. The endpoint retrieved at [step 2](#locate-your-motlp)
2. The API key created at [step 3](#create-an-api-key)

And in your deployment spec:

```yaml
Expand Down