diff --git a/solutions/observability/get-started/quickstart-elastic-cloud-otel-endpoint.md b/solutions/observability/get-started/quickstart-elastic-cloud-otel-endpoint.md index cf892c78cc..43523c7c03 100644 --- a/solutions/observability/get-started/quickstart-elastic-cloud-otel-endpoint.md +++ b/solutions/observability/get-started/quickstart-elastic-cloud-otel-endpoint.md @@ -100,11 +100,14 @@ To send data to the {{motlp}} from the {{edot}} Collector or the contrib Collect ```yaml exporters: otlp: - endpoint: https:// + endpoint: https:// <1> headers: - Authorization: ApiKey + Authorization: ApiKey <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. ::: @@ -112,10 +115,13 @@ Set the API key as an environment variable or directly in the configuration as s 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://" -export OTEL_EXPORTER_OTLP_HEADERS="Authorization=ApiKey " +export OTEL_EXPORTER_OTLP_ENDPOINT="https://" <1> +export OTEL_EXPORTER_OTLP_HEADERS="Authorization=ApiKey " <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: ``` @@ -141,11 +147,14 @@ Mount the secret as an environment variable or file, then reference it in your O ```yaml exporters: otlp: - endpoint: https:// + endpoint: https:// <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