Hosts and VMs environments
Serverless Observability Stack
On host or virtual machine environments, deploy local, per-host OpenTelemetry Collector instances at these edge host or VMs where your applications are running.
Collectors deployed on these edge environments have two main purposes:
- The collection of local logs and infrastructure metrics. Refer to this sample config file for recommended Collector receiver configurations for hostmetrics and logs.
- Enriching application telemetry from OTel SDKs with the corresponding hosts resource attributes.
Elastic Observability is technically compatible with edge setups that are fully based on contrib OTel components as long as the ingestion path follows the recommendations outlined in the following sections.
The following sections outline the recommended architectures for different Elastic deployment scenarios.
Elastic Cloud Serverless provides a Managed OTLP Endpoint for ingestion of OpenTelemetry data.

Users can send data direct from the Collectors or SDKs deployed on the edge environment through OTLP without any additional requirements for managing an ingestion layer.
Stack ECH
Elastic Cloud Hosted provides a Managed OTLP Endpoint for ingestion of OpenTelemetry data. Users can send data direct from the Collectors or SDKs deployed on the edge environment through OTLP without any additional requirements for managing an ingestion layer.

In a self-managed Elastic deployment, we recommend running an EDOT Collector in gateway mode as a unified ingestion layer for OTLP telemetry from OpenTelemetry collectors or SDKs running at the edge. This gateway can receive all signals (logs, metrics and traces), apply processing as needed, and cover the same use cases that previously required components like APM Server or Logstash.
Depending on your scalability and durability needs, this can be a single collector that scales horizontally, or a chain of collectors where each tier handles a specific concern. For high availability and stronger durability guarantees, you can insert Kafka between tiers so that ingestion is buffered and resilient to downstream outages.

Compared to Elastic's classic ingestion paths for OTel data, with the EDOT Collector in gateway mode there is no need for APM Server anymore.
Refer to data streams compared to classic APM for a detailed comparison of data streams, mappings, and storage models.