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
# Quickstart: Send data to the Elastic Cloud Managed OTLP Endpoint
9
+
# Quickstart: Send data to the {{motlp}}
10
10
11
-
In this quickstart guide, you'll learn how to use the [{{ecloud}} Managed OTLP Endpoint](opentelemetry://reference/motlp.md)to send logs, metrics, and traces to Elastic.
11
+
The {{motlp}} is a fully managed offering exclusively for Elastic Cloud users that simplifies OpenTelemetry data ingestion. It provides an endpoint for OpenTelemetry SDKs and Collectors to send telemetry data, with Elastic handling scaling, data processing, and storage. Refer to [{{motlp}}](opentelemetry://reference/motlp.md)for more information.
12
12
13
-
::::{warning}
14
-
This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
15
-
::::
13
+
This endpoint is designed for the following use cases:
14
+
15
+
* Logs & Infrastructure Monitoring: Logs forwarded in OTLP format and host and Kubernetes metrics in OTLP format.
16
+
* APM: Application telemetry in OTLP format.
17
+
18
+
In this quickstart guide, you'll learn how to use the {{motlp}} to send logs, metrics, and traces to Elastic.
16
19
17
20
## Prerequisites
18
21
19
22
* An {{obs-serverless}} project. To learn more, refer to [create an Observability project](/solutions/observability/get-started.md).
20
23
* A system forwarding logs, metrics, or traces in OTLP (any EDOT Collector or SDK—EDOT or community).
21
24
22
-
### Limitations
25
+
##Get started
23
26
24
-
* The {{ecloud}} Managed OTLP Endpoint only supports histograms with delta temporality. Cumulative histograms are dropped.
25
-
* Latency distributions based on histogram values have limited precision due to the fixed boundaries of explicit bucket histograms.
27
+
## Send data to Elastic
26
28
27
-
## Get started
29
+
Follow these steps to send data to Elastic using the {{motlp}}.
28
30
29
-
### Get your native OTLP endpoint credentials
31
+
::::::{stepper}
30
32
31
-
1.[Create a new Observability project](/solutions/observability/get-started.md), or open an existing one.
33
+
:::::{step} Check the requirements
32
34
33
-
1. In your {{obs-serverless}} project, go to **Add Data**.
35
+
To use the {{motlp}} you need the following:
34
36
35
-
1. Under **What do you want to monitor?** select **Application**, and then under **Monitor your application using** select **OpenTelemetry**.
37
+
* An Elastic Observability Serverless project. Security projects are not yet supported.
38
+
* An OTLP-compliant shipper capable of forwarding logs, metrics, or traces in OTLP format. This can include the OpenTelemetry Collector (EDOT, Contrib, or other distributions), OpenTelemetry SDKs (EDOT, upstream, or other distributions), or any other forwarder that supports the OTLP protocol.
36
39
37
-
:::{note}
38
-
Follow this flow for all use cases, including logs and infrastructure monitoring.
39
-
:::
40
+
:::::
40
41
41
-
1. Copy the `OTEL_EXPORTER_OTLP_ENDPOINT` URL. Replace `.apm` with `.ingest` and save this value for later.
42
+
:::::{step} Locate your {{motlp}}
42
43
43
-
### Create an API key
44
+
To retrieve your {{motlp}} endpoint address and an API key, follow these steps:
44
45
45
-
1. Click **Create an API Key** to generate a new API key. Copy this value for later.
46
-
1. (Optional) Test your new API key by sending an empty JSON object to the `/v1/traces` endpoint. For example:
46
+
1. In {{ecloud}}, create an Observability project or open an existing one.
47
+
2. Select your project's name and then select **Manage project**.
48
+
3. Locate the **Connection alias** and select **Edit**.
% ## commented out until mOTLP on ECH is available
52
+
% ### Elastic Cloud on Elasticsearch ({{ech}})
53
+
% 1. Open your deployment in the Elastic Cloud console.
54
+
% 2. Navigate to **Integrations** and find **OpenTelemetry** or **Managed OTLP**.
55
+
% 3. Copy the endpoint URL shown.
56
+
% ## Self-Managed
57
+
% For self-managed environments, you can deploy and expose an OTLP-compatible endpoint using the EDOT Collector as a gateway. Refer to [EDOT deployment docs](https://www.elastic.co/docs/reference/opentelemetry/edot-collector/modes#edot-collector-as-gateway).
58
+
%
59
+
% :::{note}
60
+
% Please reach out to support, and then Engineering can look into increasing it based on the license tier or for experimentation purposes.
61
+
% :::
55
62
56
-
The response should be similar to:
63
+
:::::
57
64
58
-
```txt
59
-
{"partialSuccess":{}}%
60
-
```
65
+
:::::{step} Create an API key
61
66
62
-
### Send data to your Elastic Cloud Managed OTLP endpoint
67
+
Generate an API key with appropriate ingest privileges to authenticate OTLP traffic:
63
68
64
-
* [I have an EDOT Collector/SDK running](#otel-sdk-running)
65
-
* [I need an EDOT Collector/SDK](#no-sdk-running)
66
-
* [I just want to use the instrumentation](#instrumentation-please)
69
+
1. In {{ecloud}}, go to **Manage project** → **API Keys**.
70
+
2. Select **Create API Key**.
71
+
3. Name the key. For example, `otlp-client`.
72
+
4. Edit the optional security settings.
73
+
5. Select **Create API Key**.
74
+
6. Copy the key to the clipboard.
75
+
76
+
Add this key to your final API key string. For example:
77
+
78
+
```
79
+
Authorization: ApiKey <your-api-key>
80
+
```
67
81
68
-
#### I have an EDOT Collector/SDK running [otel-sdk-running]
82
+
:::{important}
83
+
The API key copied from Kibana does not include the `ApiKey` scheme. Always prepend `ApiKey ` before using it in your configuration or encoding it for Kubernetes secrets. For example:
69
84
70
-
If you have an OpenTelemetry Collector or SDK exporting telemetry data,
71
-
configure it with the endpoint and API key generated in the previous steps.
85
+
- Correct: `Authorization: ApiKey abc123`
86
+
- Incorrect: `Authorization: abc123`
87
+
:::
72
88
73
-
**OpenTelemetry Collector configuration**
89
+
:::::
74
90
75
-
Configure your EDOT Collector as follows:
91
+
:::::{step} Send data to the {{motlp}}
92
+
93
+
The final step is to use the {{motlp}} endpoint and your Elastic API key to send data to {{ecloud}}.
94
+
95
+
::::{tab-set}
96
+
97
+
:::{tab-item} OpenTelemetry Collector example
98
+
To send data to the {{motlp}} from the {{edot}} Collector or the upstream Collector, configure the `otlp` exporter:
Configure your OTel SDK with the following environment variables:
126
+
:::{tab-item} Kubernetes example
127
+
You can store your API key in a Kubernetes secret and reference it in your OTLP exporter configuration. This is more secure than hardcoding credentials.
#### I just want to use the instrumentation [instrumentation-please]
171
+
## Differences from the Elastic APM Endpoint
123
172
124
-
See [application use-cases](opentelemetry://reference/edot-sdks/index.md) for more information.
173
+
The Elastic Cloud Managed OTLP Endpoint ensures that OpenTelemetry data is stored without any schema translation, preserving both OpenTelemetry semantic conventions and resource attributes. It supports ingesting OTLP logs, metrics, and traces in a unified manner, ensuring consistent treatment across all telemetry data. This marks a significant improvement over the [existing functionality](/solutions/observability/apm/use-opentelemetry-with-apm.md), which primarily focuses on traces and the APM use case.
125
174
126
175
## Troubleshoot
127
176
128
-
**Api Key prefix not found**
177
+
The following sections provide troubleshooting information for the {{motlp}}.
178
+
179
+
### I don't have a Collector or SDK running
180
+
181
+
Don't have a collector or SDK running? Spin up an EDOT collector in just a few steps:
You must format your API key as `"Authorization": "ApiKey <api-key-value-here>"` or `"Authorization=ApiKey <api-key>"` depending on whether you're using a collector or SDK. See [I have an EDOT Collector/SDK running](#otel-sdk-running) for more information.
197
+
You must format your API key as `"Authorization": "ApiKey <api-key-value-here>"` or `"Authorization=ApiKey <api-key>"` depending on whether you're using a collector or SDK.
139
198
140
-
**Error: too many requests**
199
+
### Error: too many requests
141
200
142
-
The Managed endpoint has per-project rate limits in place. If you hit this limit, reach out to our [support team](https://support.elastic.co).
201
+
The Managed OTLP endpoint has per-project rate limits in place. If you hit this limit, reach out to our [support team](https://support.elastic.co). Refer to [Rate limiting](opentelemetry://reference/motlp.md#rate-limiting) for more information.
Copy file name to clipboardExpand all lines: solutions/observability/get-started/quickstart-unified-kubernetes-observability-with-elastic-distributions-of-opentelemetry-edot.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,6 @@ All the components will be deployed through the [opentelemetry-kube-stack](https
24
24
25
25
For a more detailed description of the components and advanced configuration, refer to [elastic/opentelemetry](opentelemetry://reference/index.md).
26
26
27
-
::::{important}
28
-
The [{{ecloud}} Managed OTLP Endpoint](opentelemetry://reference/motlp.md) functionality for Serverless is in technical preview. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
0 commit comments