﻿---
title: Elastic Cloud Managed OTLP Endpoint (mOTLP)
description: Reference documentation for the Elastic Cloud Managed OTLP Endpoint.
url: https://www.elastic.co/docs/reference/opentelemetry/motlp
products:
  - Elastic Cloud Serverless
  - Elastic Distribution of OpenTelemetry Collector
  - Elastic Observability
---

# Elastic Cloud Managed OTLP Endpoint (mOTLP)

The Elastic Cloud Managed OTLP Endpoint allows you to send OpenTelemetry data directly to Elastic Cloud using the OTLP protocol, with Elastic handling scaling, data processing, and storage. The Managed OTLP endpoint can act like a Gateway Collector, so that you can point your OpenTelemetry SDKs or Collectors to it.
<important>
  The Elastic Cloud Managed OTLP Endpoint endpoint is not available for Elastic [self-managed](https://staging-website.elastic.co/docs/deploy-manage/deploy/self-managed), [ECE](https://staging-website.elastic.co/docs/deploy-manage/deploy/cloud-enterprise) or [ECK](https://staging-website.elastic.co/docs/deploy-manage/deploy/cloud-on-k8s) clusters. To send OTLP data to any of these cluster types, deploy and expose an OTLP-compatible endpoint using the EDOT Collector as a gateway. Refer to [EDOT deployment docs](https://staging-website.elastic.co/docs/reference/edot-collector/modes#edot-collector-as-gateway) for more information.
</important>


## Reference architecture

This diagram shows data ingest using Elastic Distribution of OpenTelemetry and the Elastic Cloud Managed OTLP Endpoint:
![mOTLP Reference architecture](https://www.elastic.co/docs/reference/opentelemetry/images/motlp-reference-architecture.png)

Telemetry is stored in Elastic in OTLP format, preserving resource attributes and original semantic conventions. If no specific dataset or namespace is provided, the data streams are: `traces-generic.otel-default`, `metrics-generic.otel-default`, and `logs-generic.otel-default`.
For a detailed comparison of how OTel data streams differ from classic Elastic APM data streams, refer to [OTel data streams compared to classic APM](https://www.elastic.co/docs/reference/opentelemetry/compatibility/data-streams).

## Prerequisites

To use the Elastic Cloud Elastic Cloud Managed OTLP Endpoint you need the following:
- An Elastic Cloud Serverless project or an Elastic Cloud Hosted (ECH) deployment.
- An OTLP-compliant shipper capable of forwarding logs, metrics, or traces in OTLP format. This can include:  
  - [OpenTelemetry Collector](https://staging-website.elastic.co/docs/reference/edot-collector) (EDOT, Contrib, or other distributions)
  - [OpenTelemetry SDKs](https://www.elastic.co/docs/reference/opentelemetry/edot-sdks/) (EDOT, upstream, or other distributions)
  - [EDOT Cloud Forwarder](https://www.elastic.co/docs/reference/opentelemetry/edot-cloud-forwarder/)
  - Any other forwarder that supports the OTLP protocol.

<note>
  You don't need APM Server when ingesting data through the Managed OTLP Endpoint. The APM integration (`.apm` endpoint) is a legacy ingest path that only supports traces and translates OTLP telemetry to ECS, whereas Elastic Cloud Managed OTLP Endpoint natively ingests OTLP data.
</note>


## Send data to Elastic

To send data to Elastic through the Elastic Cloud Managed OTLP Endpoint, follow the [Send data to the Elastic Cloud Managed OTLP Endpoint](https://staging-website.elastic.co/docs/solutions/observability/get-started/quickstart-elastic-cloud-otel-endpoint) quickstart.

### Find your Elastic Cloud Managed OTLP Endpoint endpoint

To retrieve your Elastic Cloud Managed OTLP Endpoint endpoint address, follow these steps:
<applies-switch>

  <applies-item title="serverless:">

    1. In Elastic Cloud, select **Manage** next to your project.
    2. Locate the **Connection alias** and select **Edit**.
    3. Copy the Managed OTLP endpoint URL.
  </applies-item>

  <applies-item title="ess:">
    `stack: preview 9.2`
    1. In Elastic Cloud, select **Manage** next to your project.
    2. Select **Copy endpoint** to copy the Managed OTLP endpoint URL.
  </applies-item>
</applies-switch>

<note applies-to="{ ess:, stack: preview 9.2 }">
  The Managed OTLP endpoint might not be available in all Elastic Cloud Hosted regions during the Technical Preview.
</note>


### Configure SDKs to send data directly

To configure OpenTelemetry SDKs to send data directly to the Elastic Cloud Managed OTLP Endpoint, set the `OTEL_EXPORTER_OTLP_ENDPOINT` and `OTEL_EXPORTER_OTLP_HEADERS` environment variable.
For example:
```bash
export OTEL_EXPORTER_OTLP_ENDPOINT="https://<motlp-endpoint>"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=ApiKey <key>"
```


## Routing logs to dedicated datasets

You can route logs to dedicated datasets by setting the `data_stream.dataset` attribute to the log record. This attribute is used to route the log to the corresponding dataset.
For example, if you want to route the EDOT Cloud Forwarder logs to custom datasets, you can add the following attributes to the log records:
```yaml
processors:
  transform:
    log_statements:
      - set(log.attributes["data_stream.dataset"], "aws.cloudtrail") where log.attributes["aws.cloudtrail.event_id"] != nil
```

You can also set the `OTEL_RESOURCE_ATTRIBUTES` environment variable to set the `data_stream.dataset` attribute for all logs. For example:
```bash
export OTEL_RESOURCE_ATTRIBUTES="data_stream.dataset=app.orders"
```


## Failure store

The Elastic Cloud Managed OTLP Endpoint endpoint is designed to be highly available and resilient. However, there are some scenarios where data might be lost or not sent completely. The [Failure store](https://staging-website.elastic.co/docs/manage-data/data-store/data-streams/failure-store) is a mechanism that allows you to recover from these scenarios.
The Failure store is always enabled for Elastic Cloud Managed OTLP Endpoint data streams. This prevents ingest pipeline exceptions and conflicts with data stream mappings. Failed documents are stored in a separate index. You can view the failed documents from the **Data Set Quality** page. Refer to [Data set quality](https://staging-website.elastic.co/docs/solutions/observability/data-set-quality-monitoring).

## Limitations

The following limitations apply when using the Elastic Cloud Managed OTLP Endpoint:
- Tail-based sampling (TBS) is not available.
- Universal Profiling is not available.
- Only supports histograms with delta temporality. Cumulative histograms are dropped.
- Latency distributions based on histogram values have limited precision due to the fixed boundaries of explicit bucket histograms.


## Billing

For more information on billing, refer to [Elastic Cloud pricing](https://www.elastic.co/pricing/serverless-observability).

## Rate limiting

Requests to the Elastic Cloud Managed OTLP Endpoint are subject to rate limiting and throttling. If you exceed your Elasticsearch capacity in Elastic Cloud Hosted, or send data at a rate that exceeds the limits, your requests might be rejected.
The following rate limits and burst limits apply:

| Deployment type | Rate limit | Burst limit |
|-----------------|------------|-------------|
| Serverless      | 15 MB/s    | 30 MB/s     |

As long as your data ingestion rate stays at or below the rate limit and burst limit, your requests are accepted.

### Exceeding the rate limit

If you send data that exceeds the available limits, the Elastic Cloud Managed OTLP Endpoint responds with an HTTP `429` Too Many Requests status code. A log message similar to this appears in the OpenTelemetry Collector's output:
```json
{
  "code": 8,
  "message": "error exporting items, request to <ingest endpoint> responded with HTTP Status Code 429"
}
```

After your sending rate goes back to the allowed limit, the system automatically begins accepting requests again.

### Solutions to rate limiting

Depending on the reason for the rate limiting, you can either increase your Elasticsearch capacity or request higher limits.

#### Increase your Elasticsearch capacity

If data intake exceeds the capacity of Elasticsearch in your Elastic Cloud Hosted deployment, you might get rate limiting errors. To solve this issue, scale or resize your deployment:
- [Scaling considerations](https://staging-website.elastic.co/docs/deploy-manage/production-guidance/scaling-considerations)
- [Resize deployment](https://staging-website.elastic.co/docs/deploy-manage/deploy/cloud-enterprise/resize-deployment)
- [Autoscaling in ECE and ECH](https://staging-website.elastic.co/docs/deploy-manage/autoscaling/autoscaling-in-ece-and-ech)


#### Request higher limits

If rate limiting is not caused by Elasticsearch capacity or you're on Elastic Cloud Serverless, you can either decrease data volume or request higher limits.
To increase the rate limit, [reach out to Elastic Support](https://staging-website.elastic.co/docs/troubleshoot/ingest/opentelemetry/contact-support).