How do you size and run the OpenTelemetry Collector in production?

IntermediateProductionTracing & Sampling
Answer
  • Run agents (DaemonSet or sidecar) for local collection and a gateway Deployment for processing and export.
  • Always use memory_limiter first in the pipeline and batch near the end.
  • Use the persistent sending queue (file_storage extension) for durability.
  • Set GOMEMLIMIT around 80% of the container limit.
  • Autoscale the gateway on CPU and monitor otelcol_exporter_send_failed_spans, otelcol_processor_refused_spans and queue size.
All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing & Sampling