diff --git a/docs/reference/edot-collector/config/default-config-standalone.md b/docs/reference/edot-collector/config/default-config-standalone.md index 256bfea78be..1c20382d410 100644 --- a/docs/reference/edot-collector/config/default-config-standalone.md +++ b/docs/reference/edot-collector/config/default-config-standalone.md @@ -13,7 +13,7 @@ products: - id: edot-collector --- -# Default configuration of the EDOT Collector (Standalone) +# Default configuration of the EDOT Collector (standalone) The default configuration of the {{edot}} (EDOT) Collector includes pipelines for the collection of logs, host metrics, and data from OpenTelemetry SDKs. @@ -65,7 +65,7 @@ Data is exported directly to {{es}} using the [`elasticsearch`] exporter in `OTe The application pipeline in the EDOT Collector receives data from OTel SDKs through the [`OTLP`] receiver. While logs and metrics are exported verbatim into {{es}}, traces require two additional components. -The [`elastictrace`] processor enriches trace data with additional attributes that improve the user experience in the Elastic Observability UIs. In addition, the [`elasticapm`] connector generates pre-aggregated APM metrics from tracing data. +{applies_to}`edot_collector: ga 9.2` The [`elasticapm`] processor enriches trace data with additional attributes that improve the user experience in the {{product.observability}} UIs. In addition, the [`elasticapm`] connector generates pre-aggregated APM metrics from tracing data. Application-related OTel data is ingested into {{es}} in OTel-native format using the [`elasticsearch`] exporter. @@ -102,6 +102,32 @@ Data from OTel SDKs is piped through the [`OTLP`] receiver directly to the OTLP With the {{motlp}}, there is no need to configure any Elastic-specific components, such as [`elasticinframetrics`], [`elastictrace`] processors, the [`elasticapm`] connector, or the [`elasticsearch`] exporter. Edge setup and configuration can be 100% vendor agnostic. +### Batching configuration for contrib OpenTelemetry Collector + +When using contrib or upstream OpenTelemetry collectors, the following batching configuration is recommended when sending data to the {{motlp}}: + +```yaml +otlp/ingest: + endpoint: + headers: + Authorization: ApiKey + sending_queue: + enabled: true + sizer: bytes + queue_size: 50000000 # 50MB uncompressed + block_on_overflow: true + batch: + flush_interval: 1s + min_size: 1_000_000 # 1MB uncompressed + max_size: 4_000_000 # 4MB uncompressed +``` + +The previous configuration leverages an in-memory queue and optimized batching defaults to improve throughput, minimize data loss, and maintain low end-to-end latency. + +:::{note} +The previous configuration is already included in the {{edot}} Collector. +::: + ## Gateway mode In Gateway mode, the Collector ingests data from other Collectors running in Agent mode and forwards it to Elastic.