|
| 1 | +--- |
| 2 | +navigation_title: Hosts / VMs environments |
| 3 | +description: Recommended EDOT architecture for host or virtual machine environments. |
| 4 | +applies_to: |
| 5 | + stack: |
| 6 | + serverless: |
| 7 | + observability: |
| 8 | +products: |
| 9 | + - cloud-serverless |
| 10 | + - observability |
| 11 | +--- |
| 12 | + |
| 13 | +# Hosts and VMs environments |
| 14 | + |
| 15 | +On host or virtual machine environments, deploy local, per-host OpenTelemetry Collector instances, here referred to as OTel Collector in Agent Mode. |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +These collectors have two main purposes: |
| 20 | + |
| 21 | +1. The collection of local logs and infrastructure metrics. Refer to [this sample config file](https://github.com/elastic/elastic-agent/blob/main/internal/pkg/otel/samples/linux/managed_otlp/platformlogs_hostmetrics.yml) for recommended collector receiver configurations for hostmetrics and logs. |
| 22 | +2. Enriching application telemetry from OTel SDKs that run within the instrumented applications on corresponding hosts with resource information. |
| 23 | + |
| 24 | +## Deployment scenarios |
| 25 | + |
| 26 | +See the recommended architectures per Elastic deployment scenarios: |
| 27 | + |
| 28 | +:::{note} |
| 29 | +Elastic's Observability solution is technically compatible with edge setups that are fully based on upstream OTel components as long as the ingestion path follows the recommendations outlined in the following sections. |
| 30 | +::: |
| 31 | + |
| 32 | +### Elastic Cloud Serverless |
| 33 | + |
| 34 | +Elastic Cloud Serverless provides a managed OTLP endpoint for ingestion of OpenTelemetry data. |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | +Users can send their OTel data from the [edge setup](#hosts--vms-environments) in OTel-native format through OTLP without any additional requirements for self-managed preprocessing of data. |
| 39 | + |
| 40 | +### Elastic Cloud Hosted |
| 41 | + |
| 42 | +As of Elastic Stack version <STACK_VERSION> on Elastic Cloud Hosted (ECH), you need to run a self-hosted EDOT Collector in Gateway Mode to ingest OTel data from the [edge setup](#hosts--vms-environments) in OTel-native format into the Elastic-hosted Elasticsearch. |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | +The EDOT Collector in Gateway mode enriches and pre-aggregates the data for a seamless experience in the Elastic Observability solution before ingesting it directly into Elasticsearch. |
| 47 | + |
| 48 | +If required, users can build their custom, EDOT-like collector [following these instructions](../edot-collector/custom-collector#build-a-custom-edot-like-collector). |
| 49 | + |
| 50 | +:::{note} |
| 51 | +The EDOT Gateway Collector does not send data through Elastic's Integration / APM Server on ECH to ingest data into Elasticsearch. |
| 52 | +::: |
| 53 | + |
| 54 | +:::{important} |
| 55 | +If self-managing an EDOT Gateway is not a valid option for you, refer to [Elastic's classic ingestion path for OTel data on ECH](https://www.elastic.co/guide/en/observability/current/apm-open-telemetry.html). |
| 56 | +::: |
| 57 | + |
| 58 | +### Self-managed |
| 59 | + |
| 60 | +In a self-managed deployment scenario, you need to host an EDOT Collector in Gateway mode that pre-processes and ingests OTel data from the [edge setup](#hosts--vms-environments) into the self-managed Elastic Stack. |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +:::{note} |
| 65 | +Compared to [Elastic's classic ingestion paths](https://www.elastic.co/guide/en/observability/current/apm-open-telemetry.html) for OTel data, with the EDOT Gateway Collector there is no need for an APM Server anymore. |
| 66 | +::: |
0 commit comments