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.

The endpoint provides a resilient ingestion layer that integrates with serverless autoscaling and offloads ingestion processing from Elastic Cloud Hosted clusters.

Important

The Elastic Cloud Managed OTLP Endpoint endpoint is not available for Elastic self-managed, ECE, or ECK clusters. To send OTLP data to any of these cluster types, deploy and expose an OTLP-compatible endpoint using the Elastic Agent as a gateway.

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:

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 translates OTLP telemetry to ECS, whereas Elastic Cloud Managed OTLP Endpoint natively ingests OTLP data.

To send data to Elastic through the Elastic Cloud Managed OTLP Endpoint, follow the Send data to the Elastic Cloud Managed OTLP Endpoint quickstart.

To retrieve your Elastic Cloud Managed OTLP Endpoint endpoint and generate an API key to authenticate your OTLP shipper, follow the steps for your environment.

Find your endpoint

  1. Log in to the Elastic Cloud Console.
  2. Find your project and select Manage.
  3. In the Application endpoints, cluster and component IDs section, select OpenTelemetry.
  4. Copy the endpoint value.
Tip

Alternatively, from within your project, go to Add data, select Applications, then OpenTelemetry, and copy the endpoint value. The Add data wizard also generates a pre-configured API key for authentication with the Elastic Cloud Managed OTLP Endpoint.

Find your endpoint

  1. Log in to the Elastic Cloud Console.
  2. From the home page, find your deployment in Hosted deployments, and select Manage. Or, on the Hosted deployments page, select your deployment.
  3. In the Application endpoints, cluster and component IDs section, select Managed OTLP.
  4. Copy the public endpoint value.

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 variables.

For example:

export OTEL_EXPORTER_OTLP_ENDPOINT="https://<motlp-endpoint>"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=ApiKey <key>"
		

By default, the Elastic Cloud Managed OTLP Endpoint routes each signal to a data stream based on its signal type. To route telemetry to dedicated datasets or namespaces, or to a specific index, refer to Data routing with the Managed OTLP Endpoint.

Managed inputs use a shared authentication model. Refer to Authentication for the required API key format and generation steps.

Note

Index-level privilege scoping is not supported for managed inputs. Through the Elastic Cloud Managed OTLP Endpoint, the API key can write to any data stream with a logs-, metrics-, or traces- prefix, and any client that holds the key can route data to any of them using the routing attributes. Take this into consideration when you decide how to distribute the key.

When using OpenTelemetry collectors to send data to the Elastic Cloud Managed OTLP Endpoint, configure the OTLP exporter with an explicit timeout, an in-memory queue, and batching. Use the following configuration as a starting point to improve throughput and allow requests to complete during temporary increases in ingestion latency.

exporters:
  otlp/elastic:
    endpoint: "${MOTLP_ENDPOINT}"
    timeout: 30s
    headers:
      Authorization: "ApiKey <key>"
    sending_queue:
      enabled: true
      sizer: bytes
      queue_size: 50_000_000
      block_on_overflow: true
      batch:
        flush_timeout: 1s
        min_size: 1_000_000
        max_size: 4_000_000
		

The key settings are:

  • timeout: Sets the timeout for each export attempt to 30 seconds. The upstream Collector default of 5 seconds can cancel requests during temporary increases in ingestion latency. This timeout is separate from the batching flush timeout and the retry budget. It does not make successful requests wait for 30 seconds.
  • sending_queue: Enables an in-memory queue with byte-based sizing (sizer: bytes) and a 50 MB capacity. block_on_overflow: true applies backpressure by waiting for space when the queue is full. Enqueueing can still fail if the caller's request times out before space becomes available. Queued data does not survive a Collector crash or forced termination.
  • batch: Controls how queued data is batched before export. A flush_timeout of 1 second ensures low latency, while min_size (1 MB) and max_size (4 MB) keep payloads within the Elastic Cloud Managed OTLP Endpoint limits. Refer to the Payload too large troubleshooting section for details on payload size limits.

The upstream Collector enables retries for retryable export failures by default, with a retry budget (retry_on_failure.max_elapsed_time) of 5 minutes. These retries are separate from the timeout for each attempt. Increasing the attempt timeout allows slower requests to complete instead of repeatedly cancelling them at the same short deadline. For details, refer to the OpenTelemetry Collector exporter helper configuration.

Tune the timeout and queue capacity for your workload. Monitor export failures and queue utilization during traffic spikes to check whether the configuration provides enough headroom.

This diagram shows data ingest using Elastic OpenTelemetry and the Elastic Cloud Managed OTLP Endpoint:

mOTLP Reference architecture

Telemetry is stored in Elastic in OTLP format, preserving resource attributes and original semantic conventions. If no specific dataset or namespace is provided, telemetry is routed to the generic data streams: 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.

On Elastic Cloud Hosted, the Elastic Cloud Managed OTLP Endpoint routes metrics based on the deployment's Elastic Stack version. The route determines which metric temporality is supported:

  • Elastic Stack 9.5.3 or later: metrics go to the native Elasticsearch OTLP endpoint, which supports both delta and cumulative temporality.
  • Elastic Stack 9.0 through 9.5.2: metrics go through the Elasticsearch bulk API compatibility path. Send histograms with delta temporality and counters with cumulative temporality, which all versions support.

This routing is automatic and doesn't require client-side configuration changes. For temporality support across all ingestion paths and deployment types, refer to Histogram and counter temporality.

A successful response from the Elastic Cloud Managed OTLP Endpoint means your data was durably accepted for processing, not that Elasticsearch has indexed it. For what happens when indexing fails and how to verify your data was indexed, refer to Indexing errors and the failure store.

The following limitations apply when using the Elastic Cloud Managed OTLP Endpoint:

  • Universal Profiling is not available.
  • The endpoint only writes to data streams with logs-, metrics-, or traces- prefixes. Data routed to other prefixes is silently dropped and will not appear in Elasticsearch.
  • For supported metric temporality for histograms and counters, refer to Histogram and counter temporality.
  • Latency distributions based on histogram values have limited precision due to the fixed boundaries of explicit bucket histograms.
  • Tail-based sampling (TBS) is not available. The Elastic Cloud Managed OTLP Endpoint does not provide centralized hosted sampling. If you need tail-based sampling, configure it on the edge using the Tail Sampling Processor in your Elastic OpenTelemetry or OpenTelemetry Collector before sending data to the endpoint.
  • For how IP filters and private connectivity apply to all managed inputs, refer to Network security.

For more information on billing, refer to Elastic Cloud pricing.