Choose between OTel Collector agent and gateway deployment patterns

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

Steps

  1. Use the agent pattern (DaemonSet or sidecar) when you need locality: collecting host metrics, scraping local endpoints, or minimising network hops from your workload to the Collector
  2. Use the gateway pattern (centralised Deployment behind a load balancer) when you need shared processing: tail sampling, cross-service enrichment, fan-out to multiple backends, or policy enforcement at a single chokepoint
  3. For most production environments combine both: agents collect and lightly buffer, forwarding over OTLP to a gateway tier that batches, samples, and exports
  4. Configure agents with smaller batch sizes (timeout: 200ms, send_batch_size: 512) and short queue sizes to keep per-node memory low; configure gateways with larger batch sizes and deeper queues for throughput
  5. In Kubernetes deploy agents as a DaemonSet so each node has exactly one agent; deploy gateway as a Deployment (2+ replicas) fronted by a ClusterIP Service or an L7 gRPC-aware load balancer
  6. Instrument agent config with health_check and zpages extensions; instrument gateway with the same plus pprof for profiling under load

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
Scale and operate an OTel Collector gateway tier for high availability
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