
Table of Contents
By Khimananda Oli | Last reviewed: November 2026
Configuring telemetry infrastructure often fails not because of bad tools, but because of misunderstood data flows. OpenTelemetry Collector Pipelines: Receivers, Processors and Exporters Explained is the essential mental model for fixing this. When you treat the Collector as a structured assembly line rather than a black box, you gain control over cost, security, and signal fidelity before data ever leaves your network.
If you are new to the broader ecosystem, start by understanding OpenTelemetry as the observability standard before diving into pipeline mechanics. The Collector is the operational heart of that standard, turning raw signals into actionable intelligence without locking you into a single vendor's agent.
How do OpenTelemetry Collector pipelines actually route signals?
A pipeline is a declarative binding, not a physical wire. In your config.yaml, the service.pipelines section explicitly lists which receivers, processors, and exporters handle each signal type. The Collector validates these bindings at startup; if you reference a component that isn't defined in the top-level configuration, the process refuses to start. This fail-fast behavior prevents silent data loss in production.
The most common mistake I see in Nepal-based startups and global teams alike is assuming all signals share a single processing chain. They don't. Traces, metrics, and logs have separate pipeline definitions. You can route traces to Tempo while sending metrics to Prometheus and logs to Loki, all from the same Collector instance. This isolation means a log spike won't starve your trace buffer—a critical reliability property when you're debugging incidents under pressure.
Pipeline binding syntax
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch, memory_limiter]
exporters: [otlp/tempo]
metrics:
receivers: [prometheus, otlp]
processors: [batch, filter/drop-noisy]
exporters: [prometheusremotewrite]
logs:
receivers: [filelog, otlp]
processors: [batch, attributes/add-env]
exporters: [loki] Each key under pipelines is a signal type. The arrays reference component names defined elsewhere in the config. Order matters in the processors array: they execute sequentially, top to bottom. Put memory_limiter first to protect against OOM kills, then batch to amortize export overhead, then any attribute manipulation or filtering.
Which receivers should you use for traces, metrics, and logs?
Receivers are the entry points. Choosing the right one depends on your instrumentation strategy and existing infrastructure. For a comprehensive comparison of signal types before they reach the Collector, review metrics, logs, and traces compared. At the Collector level, these are the production-grade choices for 2026:
- otlp receiver: The default for native OpenTelemetry SDKs. Supports gRPC (port 4317) and HTTP/protobuf (port 4318). Always enable both unless you have a specific network constraint.
- prometheus receiver: Scrapes Prometheus-compatible endpoints. Use this when migrating from direct Prometheus scraping to centralized collection. It respects scrape configs and service discovery.
- filelog receiver: Tails log files with parsing operators. Essential for legacy apps that write to disk instead of stdout. Configure multiline detection carefully—misconfigured regex here causes massive log fragmentation.
- jaeger receiver: Accepts Jaeger thrift/gRPC. Useful during migration from Jaeger agents to OTel Collectors without re-instrumenting applications.
- hostmetrics receiver: Collects CPU, memory, disk, and network stats directly from the host OS. Replaces node_exporter in many deployments.
In practice, most Kubernetes clusters run the Collector as a DaemonSet with otlp, filelog, and hostmetrics receivers enabled. A separate Deployment-mode Collector handles aggregation and export. This two-tier pattern prevents noisy neighbors and scales ingestion independently from export bandwidth.
How do processors reduce cost and improve signal quality?
Processors are where you enforce policy. Without them, the Collector is just a proxy. With them, it becomes a governance layer. These three processors belong in nearly every production pipeline:
- memory_limiter: Sets hard bounds on heap usage. When the limit is reached, it drops incoming data rather than crashing. Configure
check_interval: 1s,limit_mib: 512, andspike_limit_mib: 128as starting points. Tune based on observed RSS via/metrics. - batch: Accumulates spans/metrics/logs before exporting. Default timeout is 200ms; increase to 5–10s for high-throughput workloads to reduce API calls. Set
send_batch_size: 8192andsend_batch_max_size: 16384to balance latency and throughput. - filter: Drops unwanted data before it consumes export bandwidth. Use OTTL expressions to drop health-check traces, debug logs, or low-value metrics. Example:
drop(log.body contains "heartbeat").
A common anti-pattern is placing attributes or transform processors before memory_limiter. If a traffic spike hits, those processors consume CPU enriching data that will be dropped anyway. Always gate expensive operations behind the limiter. For teams managing sensitive data, the redaction processor strips PII before export—critical for compliance in fintech or healthcare environments where audit trails must exist but cannot contain raw secrets.
What exporter configuration prevents data loss in production?
Exporters are the exit point. Misconfiguration here causes silent failures or overwhelming downstream systems. Key principles:
- Enable retry_on_failure: Default is true, but verify. Set
initial_interval: 5s,max_interval: 30s, andmax_elapsed_time: 300s. Transient network blips shouldn't cause permanent data loss. - Configure sending_queue: Buffers data during exporter outages. Set
num_consumers: 10andqueue_size: 5000minimum. Monitor queue depth viaotelcol_exporter_queue_size; sustained full queues mean your backend can't keep up. - Use TLS everywhere: Even internal traffic. The
tlsblock supports cert rotation and CA bundles. Never disable verification in production. - Match exporter to backend protocol: Don't force OTLP into a Prometheus remote-write endpoint. Use
prometheusremotewritefor metrics,lokifor logs,otlpfor traces. Protocol mismatches cause silent schema errors.
For teams running Grafana stacks, pairing the Collector with Tempo for distributed tracing creates a cohesive observability platform. The otlp exporter sends traces directly to Tempo's gRPC endpoint, while prometheusremotewrite feeds Mimir. This avoids intermediate proxies and reduces hop count.
| Component | Primary Role | Critical Config Knob | Failure Mode If Misconfigured |
|---|---|---|---|
| Receiver | Ingest raw telemetry | Protocol + port binding | Data never enters pipeline |
| Processor | Transform, filter, protect | Order + resource limits | OOM, dropped signals, high CPU |
| Exporter | Deliver to backend | Queue size + retry policy | Silent loss or backend overload |
| Pipeline | Bind components per signal | Explicit signal-type mapping | Cross-signal interference |
How do you validate and monitor OpenTelemetry Collector pipelines?
Configuration correctness doesn't guarantee runtime health. You must observe the observer. Enable the Collector's own metrics endpoint (extensions.telemetry.metrics.address: 0.0.0.0:8888) and scrape it with Prometheus. Key metrics to alert on:
otelcol_receiver_accepted_spansvsotelcol_receiver_refused_spans: Refusals indicate receiver-level backpressure or malformed payloads.otelcol_processor_dropped_spans: Non-zero values mean your memory_limiter is actively shedding load. Investigate root cause; don't just raise limits.otelcol_exporter_sent_spansvsotelcol_exporter_send_failed_spans: Failures point to backend issues or auth misconfigurations.otelcol_process_memory_rss: Track actual heap usage against your limiter threshold. Sustained >80% utilization requires tuning.
Run otelcol validate --config=config.yaml before every deployment. This catches YAML structure errors, missing component references, and invalid processor orders. Integrate it into your CI pipeline alongside structured logging validation to catch regressions before they hit production. In my experience helping teams across Nepal and globally, automated validation prevents more incidents than any amount of manual review.
Building Reliable Observability Data Flows
OpenTelemetry Collector Pipelines: Receivers, Processors and Exporters Explained gives you the vocabulary to design, debug, and optimize telemetry infrastructure. Treat each pipeline as a contract: explicit inputs, ordered transformations, guaranteed delivery semantics. Start with the memory_limiter → batch → exporter pattern, validate configs in CI, and monitor the Collector's own health metrics relentlessly. When your observability stack is itself observable, you stop guessing and start engineering. Need help designing a compliant, cost-efficient pipeline for your team? Get in touch to discuss your specific architecture.