OpenTelemetry Collector Pipelines: Receivers, Processors and Exporters Explained

Khimananda Oli 8 min read DevOps
OpenTelemetry Collector Pipelines: Receivers, Processors and Exporters Explained

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.

OpenTelemetry Collector Pipeline ArchitectureReceiversOTLP / JaegerPrometheusProcessorsBatch / FilterAttributesExportersTempo / LokiPrometheusData flows left-to-right through isolated signal pipelines
OpenTelemetry Collector Pipelines architecture: receivers ingest, processors transform, exporters deliver signals independently

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.

Processor Execution Order Matters1. memory_limiterDrop on backpressure2. batchAmortize exports3. attributesEnrich / redactExporterSendWrong order = dropped data before batching = wasted CPU + incomplete tracesAlways place memory_limiter BEFORE batch in production pipelines
Processor sequence in OpenTelemetry Collector Pipelines: memory protection must precede batching to prevent data loss

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:

  1. 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, and spike_limit_mib: 128 as starting points. Tune based on observed RSS via /metrics.
  2. 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: 8192 and send_batch_max_size: 16384 to balance latency and throughput.
  3. 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, and max_elapsed_time: 300s. Transient network blips shouldn't cause permanent data loss.
  • Configure sending_queue: Buffers data during exporter outages. Set num_consumers: 10 and queue_size: 5000 minimum. Monitor queue depth via otelcol_exporter_queue_size; sustained full queues mean your backend can't keep up.
  • Use TLS everywhere: Even internal traffic. The tls block 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 prometheusremotewrite for metrics, loki for logs, otlp for 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.

ComponentPrimary RoleCritical Config KnobFailure Mode If Misconfigured
ReceiverIngest raw telemetryProtocol + port bindingData never enters pipeline
ProcessorTransform, filter, protectOrder + resource limitsOOM, dropped signals, high CPU
ExporterDeliver to backendQueue size + retry policySilent loss or backend overload
PipelineBind components per signalExplicit signal-type mappingCross-signal interference
Misconfigured PipelineProduction-Ready PipelineReceiverAttributes (first)Batch (no limiter)Exporter (no queue)OOM crashes + silent data lossReceivermemory_limiterBatch + AttributesExporter + QueueGraceful degradation + reliable delivery
OpenTelemetry Collector Pipelines comparison: correct processor ordering and queue configuration prevent production failures

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_spans vs otelcol_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_spans vs otelcol_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.

Frequently Asked Questions

Receivers ingest telemetry data, processors transform or filter it, and exporters send it to backends. All three must be defined and linked in the pipelines configuration section for data to flow correctly through the collector instance.

List receiver names under the receivers key within your specific pipeline definition. The collector aggregates data from all listed sources into a unified stream before passing it to configured processors and exporters for downstream handling.

Yes. Define the exporter once in the exporters section, then reference its name in multiple pipeline definitions. This reduces configuration duplication and ensures consistent backend delivery settings across different telemetry signal types like traces and metrics.

Batch groups telemetry into larger payloads to reduce export overhead, while memory_limiter prevents out-of-memory crashes by dropping data when heap usage exceeds thresholds. Use both together in 2026 deployments to balance throughput and stability.

Check processor order and memory_limiter settings. If memory_limiter appears after batch or queue processors, backpressure fails and data drops without error logs. Always place memory_limiter first in the processor chain to enforce limits before buffering occurs.

Processors execute sequentially as listed. Place filtering and sampling early to reduce downstream load. Expensive transformations should follow lightweight filters. Incorrect ordering increases CPU usage and latency, especially under high-throughput production workloads in Kubernetes environments.

Not always, but it is recommended. Separate pipelines allow independent scaling, processor chains, and export destinations per signal type. Mixing signals in one pipeline complicates debugging and risks cascading failures if one backend becomes unavailable.

Use the redaction or attributes processor to mask PII before export. Enable TLS on all receivers and exporters. Store credentials in environment variables or secret managers, never in plain YAML configs. Audit processor chains regularly for accidental data leakage.

Inefficient processor ordering, excessive regex in attribute processors, or undersized batch sizes cause CPU spikes. Profile with pprof endpoints enabled. Move heavy filtering upstream, increase batch sizes moderately, and ensure memory_limiter is configured to prevent garbage collection thrashing.

Use the validate subcommand to check syntax before deployment. Run the collector in dry-run mode with debug exporter to inspect transformed output. Deploy to staging first and monitor internal telemetry metrics for dropped items or increased latency.

Yes. Receivers like prometheus, hostmetrics, and k8s_events operate on pull or poll models. They actively scrape endpoints or query APIs at defined intervals. Configure scrape_interval carefully to avoid overwhelming targets or creating gaps in metric coverage.

The collector queues data up to the configured retry and timeout limits. If the queue fills, subsequent batches are dropped and logged as failed exports. Implement circuit breakers and alert on otelcol_exporter_send_failed_spans to detect backend outages early.

Apply tail-based sampling and attribute filtering early in the pipeline to discard low-value telemetry. Use metrics generation processor to convert verbose logs into aggregated metrics. Reducing exported volume directly lowers cloud observability bills without losing critical signal fidelity.

Yes. Core includes only stable, vendor-neutral components. Community receivers like nginx, redis, or cloud-specific sources live in contrib. Build a custom binary using the builder tool or use official contrib images to access these extended pipeline capabilities.

Upgrade quarterly or when critical CVEs are patched. Pin versions in production; avoid latest tags. Test pipeline configs against new releases in CI first, as processor behavior and deprecations change between minor versions even within stable API guarantees.