Scale and operate an OTel Collector gateway tier for high availability

domain: opentelemetry.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Deploy gateway Collectors as a Kubernetes Deployment with at least 2 replicas spread across nodes using topology spread constraints (topologyKey: kubernetes.io/hostname) to avoid single-node failure taking down the entire tier
  2. Front the Deployment with a Service; use an L7 (gRPC-aware) load balancer or configure the Service as Headless so agent-side gRPC clients can connect to individual pod IPs and benefit from client-side load balancing
  3. Set resource requests and limits based on profiling: use the pprof extension to capture CPU and heap profiles under realistic load before sizing; a common starting point is 1 CPU and 2 GiB memory per gateway pod
  4. Configure a Kubernetes HorizontalPodAutoscaler targeting CPU utilisation or a custom metric such as otelcol_exporter_queue_size to scale out automatically under load spikes
  5. Set PodDisruptionBudgets (minAvailable: 1) so rolling upgrades and node drains never take all gateway pods offline simultaneously
  6. Enable persistent queues (file_storage extension) on agents rather than gateways so agents buffer data locally during gateway rolling restarts, preventing data loss

Known gotchas

Related routes

Deploy the OTel Collector as both a DaemonSet and a Deployment (gateway) on Kubernetes and understand the routing responsibilities of each tier
opentelemetry.io · 5 steps · unrated
Choose between OTel Collector agent and gateway deployment patterns
opentelemetry.io · 6 steps · unrated
Wire receivers, processors, and exporters into an OTel Collector pipeline
opentelemetry.io · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans