Monitoring OpenTelemetry Collector reliability: metrics, triage, and load tests
DebugGuide12 min read

Monitoring OpenTelemetry Collector reliability: metrics, triage, and load tests

By Nicolas Narbais

Six monitoring boundaries, verified PromQL alerts, a symptom to root cause triage matrix, and six fault tests to catch OpenTelemetry Collector pressure and drops before Slack does.

Last updated on

Your Collector pods are green. CPU sits at 30%, memory looks flat, and nothing paged. Then an engineer asks in Slack why traces stopped arriving twenty minutes ago.

Healthy Kubernetes probes do not prove telemetry is reaching your backend. Even when memory_limiter, sending_queue, and retry_on_failure are configured cleanly, a Collector can silently shed load, exhaust its queue, or drop batches on auth failures unless you watch the metrics it already emits on :8888/metrics.

This guide gives you six monitoring boundaries, PromQL that separates sustained pressure from failed requests, a symptom to root cause map (including the Helm memory limit trap), and six fault tests to validate your monitors and recovery behavior.

Note

Pinned versions: The metric names, Helm reader behavior, memory_limiter cgroup fallback, PromQL expressions, and all six fault tests below were verified live against OpenTelemetry Collector Contrib v0.166.0, Helm chart v0.183.2 reader settings, and Prometheus v3.4.1 in local Docker. Pin your own release and verify labels against your production deployment too: internal telemetry metrics evolve between minor versions.

(Looking for how memory_limiter, sending_queue, retry_on_failure, persistent queues, and Kafka work under the hood? Start with Part 1: OpenTelemetry Collector reliability: internal mechanisms and durability trade-offs.)


Monitor first, upgrade architecture second

Every step up the reliability ladder in Part 1 (two-tier Agent to Gateway, file_storage persistent queues, Kafka) carries a real operational cost. Yet many teams jump straight to complex topologies out of fear, without ever measuring whether a simple stateless Collector was close to dropping a single span.

Monitoring your Collector serves two goals:

  1. Catch pressure before someone pings Slack: separate a normal 30-second backend blip that your queue absorbs from confirmed data loss happening right now.
  2. Choose reliability upgrades from your loss budget: use production traffic to size queues and capacity, and fault tests to assess restart and outage risks. Persistent queues, extra replicas, or an external broker may be necessary to meet a durability requirement before the first production loss.

What to monitor: the minimal reliability dashboard

Scrape the Collector’s Prometheus endpoint on port 8888 at /metrics across six boundaries. The stock Collector binds this reader to localhost; the Helm chart binds it to the pod IP but disables its metrics Service port by default. Configure scraper access for your deployment, and alert on a failed scrape so a dead Collector cannot look like zero failures. Group the metrics into three operational questions:

  • Is telemetry flowing, buffering, or failing? (Boundaries 1 to 4): Follow ingress and memory refusal (1), queue occupancy and active export operations (2), rejected queue admissions (3), and final export failures (4). Queue admission failures may recover through upstream retries. Final failures on an asynchronous exporter queue mean that exporter has given up on those items; neither counter alone measures unique end-to-end loss.
  • Is the pod itself starving? (Boundary 5): Pipeline counters can look quiet right before Kubernetes throttles CPU on your export workers or Linux OOMKills the container.
  • Is your persistent queue disk keeping up? (Boundary 6, only if using file_storage): Disk-backed queues trade RAM pressure for PVC capacity and IOPS; ignore the disk and you simply trade OOMKills for drops from full storage.
BoundaryExact metrics (v0.166.0)Alert classWhat it proves
1. Ingress & memory refusalotelcol_receiver_accepted_<signal>
otelcol_receiver_refused_<signal>
otelcol_processor_memory_limiter_refused_<signal>
Warning (leading)Work entering vs actively shed at the guardrail
2. Queue saturation & active workersotelcol_exporter_queue_size
otelcol_exporter_queue_capacity
otelcol_exporter_in_flight_requests
Warning (leading)Runway remaining and whether consumers are pinned in retries
3. Queue admission failuresotelcol_exporter_enqueue_failed_<signal>Page (loss risk)Queue rejected data before exporter retries; recovery depends on upstream retries
4. Egress & final export failuresotelcol_exporter_sent_<signal>
otelcol_exporter_send_failed_<signal>
Page (export abandoned)Exporter reported success vs failure after its retry loop; backend retention is outside this boundary
5. Process runtime & cgroupotelcol_process_memory_rss
otelcol_process_runtime_heap_alloc_bytes
otelcol_process_cpu_seconds (+ K8s CPU throttling & OOMKills)
Warning / PageMemory runway to GOMEMLIMIT/OOM and CPU starvation
6. Persistent queue disk (if using file_storage)PVC used/capacity bytes; database file sizes; storage latency/error metrics from your storage monitoringWarning / PageVolume headroom, each database’s max_size headroom, and storage performance are separate checks

(Replace <signal> with spans, metric_points, or log_records: the signal is part of the metric name, not a label.)

Ready-to-use PromQL monitors (with starting thresholds)

Three important notes before pasting these into Prometheus, Grafana, or your alerting tool:

  1. No _total suffix in stock or Helm v0.183.2 defaults. Both stock v0.166.0 and the Helm chart’s explicit pull reader (host + port) export otelcol_exporter_sent_spans, not otelcol_exporter_sent_spans_total. Custom reader flags (without_type_suffix: false) can change this. Inspect your deployment’s /metrics output before creating rules.
  2. Always group by component and instance. A sum across the fleet hides one overloaded pod inside nineteen healthy ones. Replace instance with pod (or pod, namespace) if your scrape config attaches Kubernetes labels.
  3. error_type and error_permanent require service.telemetry.metrics.level: detailed. At the default normal level, otelcol_exporter_send_failed_* omits both labels. Query 5 still fires under normal (grouped by instance, exporter), and splits by error class once you enable detailed.

Each query below is a separate monitor condition. Configure for: in the alert rule; the comments do not set it. Queries 4 and 5 detect any failed items in the last five minutes with no pending delay, including the very first isolated failure on a newly created counter series. Treat that as a strict starting policy: choose a failure count or failure ratio threshold if your loss budget permits it. Duplicate the failure queries for _metric_points and _log_records.

# 1. Queue saturation [Warning · for: 5m]
# Warn above 65% sustained (upstream's 60% to 70% pressure band) per pod, exporter, and signal.
max by (instance, exporter, data_type) (otelcol_exporter_queue_size)
  / clamp_min(max by (instance, exporter, data_type) (otelcol_exporter_queue_capacity), 1)
  > 0.65

# 2. Memory limiter shedding load [Warning · for: 5m]
# Refusals observed throughout successive 2m windows for 5m; this does not prove continuously high heap.
# Duplicate for _metric_points and _log_records.
sum by (instance, processor) (
  rate(otelcol_processor_memory_limiter_refused_spans[2m])
) > 0

# 3. Export workers pinned in flight [Warning · for: 3m]
# Set threshold to your sending_queue.num_consumers (default: 10). All workers pinned = likely stuck in retries.
max by (instance, exporter, data_type) (otelcol_exporter_in_flight_requests) >= 10

# 4. Queue admission failures [Page · omit for:]
# Rejected before exporter retry_on_failure; upstream retries may still recover the data.
# The `or (... unless ... offset 5m)` branch catches the first failure after Collector startup,
# because failure counters are not initialized to 0 beforehand.
(
  sum by (instance, exporter) (
    increase(otelcol_exporter_enqueue_failed_spans[5m])
  ) > 0
)
or
(
  sum by (instance, exporter) (otelcol_exporter_enqueue_failed_spans) > 0
  unless
  sum by (instance, exporter) (otelcol_exporter_enqueue_failed_spans offset 5m)
)

# 5. Final export failures [Page · omit for:]
# Export abandoned after retries or permanent rejection.
# error_type and error_permanent require service.telemetry.metrics.level: detailed
# (under default normal level, both labels are absent and the alert still fires per instance, exporter).
(
  sum by (instance, exporter, error_type, error_permanent) (
    increase(otelcol_exporter_send_failed_spans[5m])
  ) > 0
)
or
(
  sum by (instance, exporter, error_type, error_permanent) (otelcol_exporter_send_failed_spans) > 0
  unless
  sum by (instance, exporter, error_type, error_permanent) (otelcol_exporter_send_failed_spans offset 5m)
)

# 6. Process RSS approaching container limit [Warning · for: 5m]
# Warn at 75% of resources.limits.memory (example below assumes a 2 GiB pod = 2147483648 bytes),
# RSS is a process pressure signal, not the heap threshold used by memory_limiter.
max by (instance) (otelcol_process_memory_rss) > (0.75 * 2147483648)
Warning

Match alert timing and counter startup behavior to the failure you want to catch: Use a pending duration (for:) for sustained pressure. For failure counters, a lookback shorter than for: can hide an isolated failure: rate(...[2m]) > 0 may clear before for: 3m completes. Equally important: the Collector does not initialize enqueue_failed_* or send_failed_* to 0 at startup, so a new counter series appearing at 10 yields increase(...[5m]) == 0 in default Prometheus until a second failure occurs. The or (... unless ... offset 5m) branch catches that first failure for five minutes (if your Prometheus enables created timestamp zero ingestion, increase(...[5m]) > 0 alone is sufficient; note that a scrape gap longer than 5m on an already nonzero counter can also retrigger the offset 5m branch). Scraping must still observe the counter change. A process that dies before the next scrape can lose data without these counters proving it.

If you run file_storage persistent queues, add a seventh Warning (for: 5m) monitor for PVC capacity: max by (persistentvolumeclaim, namespace) (kubelet_volume_stats_used_bytes / kubelet_volume_stats_capacity_bytes) > 0.75. Retain a cluster label too if your metrics cover multiple clusters. This measures volume occupancy, not write latency. Monitor each database file against its configured max_size separately, and collect storage latency and I/O errors: a file can hit its own cap while the PVC still has space.

Optional deep dive: When send_failed_* increments

It is common to assume that otelcol_exporter_send_failed_* works like an HTTP 5xx counter (one tick per failed attempt). In Collector v0.166.0 (exporterhelper/internal/base_exporter.go), exporter metrics wrap the entire retry loop instead:

  • While an operation retries a temporary failure with exponential backoff, it remains in flight (otelcol_exporter_in_flight_requests) and does not yet add to send_failed_*. Other operations can still fail during that interval.
  • When that operation returns an error after retries, a permanent rejection, cancellation, or shutdown, send_failed_* records its failed items. At service.telemetry.metrics.level: detailed, the Collector attaches error.type and error.permanent, which serialize in Prometheus as error_type and error_permanent (for example, error_permanent="true", error_type="InvalidArgument" on an HTTP 400 rejection, or error_permanent="false", error_type="Unavailable" after HTTP 503 or gRPC Unavailable retries exhaust). At the default normal level, both labels are omitted. For an asynchronous sending queue, the original caller has already received queue admission success and cannot recover this final export failure through its original request.
  • Both stock v0.166.0 and the Helm chart v0.183.2 pull reader default to WithoutTypeSuffix: true, WithoutUnits: true, and WithoutScopeInfo: true on :8888, which is why counters ship without _total and without otel_scope_* labels by default.

Symptom to root cause: what each pattern actually means

When an alert fires, compare queue, refusal, export, and runtime metrics with logs before changing replicas, memory limits, or queue_size. The patterns below narrow the investigation; confirm the cause in your deployment.

What you observeLikely root causesConfirm withSafe first actionDo NOT
memory_limiter_refused_* and receiver_refused_* rising; RSS near limitSudden traffic spike; heavy processor (transform, k8sattributes, tail_sampling); batch partition cardinality explosion; or live queues filling during a slow backendCheck queue_size and process_runtime_heap_alloc_bytes to separate queue growth from processor memoryFind what holds memory; verify upstream retry behavior; shed load or add capacityAssume memory_limiter prevented data loss. It is here to prevent OOMKill.
queue_size climbing steadily; sent_* still moving; in_flight_requests pinned highExport slower than ingest: slow backend, network latency, Collector CPU throttling, or too few num_consumersCheck backend latency/errors and container_cpu_cfs_throttled_periods_totalFix the slow side; scale Collector replicas only if the backend is healthy and queue stays above 60% to 70%Scale replicas into an already slow backend, or enlarge queue_size first
enqueue_failed_* rising; queue full or storage errors presentRejected admissions: egress stall longer than queue budget, queue units smaller than assumed, or storage cap / I/O failure; upstream retries determine recoveryCheck sending_queue.sizer, database sizes, PVC usage, storage errors, and upstream retry behaviorRestore egress or storage access; confirm whether upstream recovered rejected requestsDeclare unique data loss from this counter alone, or assume free PVC space rules out storage rejection
send_failed_* rising; queue_size flat or lowExport path failing immediately: bad auth token, TLS/cert failure, DNS/network policy, wrong endpoint, or backend 4xx schema rejectionSplit send_failed_* by error_permanent and error_type (requires service.telemetry.metrics.level: detailed), plus Collector stderr logsFix credentials, TLS, endpoint, DNS, or payload schemaAdd Collector replicas or enlarge the queue
OOMKill despite memory_limiter enabledContainer has no resources.limits.memory (see Helm trap below); memory_limiter placed after heavy processors; check_interval too slow (5s) for spikes; uncompacted file_storage mmap(); or single huge payloadInspect rendered Deployment spec (limits.memory, GOMEMLIMIT), pipeline order, and bbolt file sizeSet explicit K8s memory limits + GOMEMLIMIT; move memory_limiter first; drop check_interval to 1s; enable compaction.on_reboundBlindly double pod memory without checking why the guardrail failed to fire
High RSS or heap while queue_size is near zeroLarge metadata partition caches or stateful processor state; high RSS with lower heap can also involve uncompacted file_storage mappingsCompare RSS with heap, inspect partition cache metrics and processor limits, and check database file sizesTune queue_batch partition.cache_size / idle_timeout or the batch processor’s metadata limits as applicable; check rebound compaction thresholdsCall queue_batch partitions unbounded: v0.166.0 has a finite default cache; treat RSS backed by mmap() as Go heap
All Collector metrics green, backend still missing dataTelemetry never reached the Collector (SDK/port/TLS/unwired pipeline), dropped intentionally by a filter/sampler, or dropped inside the backend after 200 OKSend one identifiable telemetrygen span and trace it hop by hopIsolate the broken hop locally with a Docker Compose Collector lab and verify internal metrics using the OpenTelemetry Collector Health Implementation GuideKeep tweaking exporter retry/queue settings

The Helm memory limit trap: check the denominator and soft limit

If you deploy with the upstream opentelemetry-collector Helm chart (v0.183.2), check your rendered manifest before trusting memory_limiter.

The chart ships with resources: {}, useGOMEMLIMIT: true, memory_limiter.limit_percentage: 80, and spike_limit_percentage: 25. When resources.limits.memory is unset:

  1. useGOMEMLIMIT: true does nothing: no GOMEMLIMIT environment variable is rendered.
  2. In Collector’s Linux implementation (internal/memorylimiter/iruntime/total_memory_linux.go), when no cgroup memory quota is defined, limit_percentage: 80 falls back to /proc/meminfo (80% of the entire host node’s RAM).

If no cgroup memory quota applies on a 64 GiB node, the hard heap limit is about 51.2 GiB. Refusal starts at the soft limit: 80% minus 25% = 55%, about 35.2 GiB of heap. Node pressure may kill the container before either threshold helps. The limiter remains active, but thresholds sized to the whole node provide little protection for a Collector intended to use a few GiB.

Default Helm resource values:

resources: {}
useGOMEMLIMIT: true

An explicit resource budget to load test, expressed as a separate Helm values fragment:

resources:
  requests:
    cpu: 500m
    memory: 1Gi
  limits:
    memory: 2Gi
useGOMEMLIMIT: true

With a 2 GiB container limit and the same limiter percentages, the hard heap limit is about 1.6 GiB and the soft limit is about 1.1 GiB. The chart sets GOMEMLIMIT to about 1.6 GiB. GOMEMLIMIT constrains memory managed by the Go runtime, while memory_limiter checks allocated heap; neither is an RSS or cgroup usage limit. Monitor process and container memory separately, and inspect the rendered manifest and limiter startup logs to confirm the effective values.


Test your monitors before an incident does

Monitors you have never triggered are how teams discover a missing _total suffix, a wrong num_consumers threshold, or an unwired label at 3 AM.

Before trusting these alerts in production, run the tests below in staging or a local Docker Compose lab. Use telemetrygen to generate traffic, and inject backend, resource, and restart faults separately. Start with:

telemetrygen traces --otlp-insecure --rate 1000 --duration 5m
TestWhat you injectMonitor that should fire (or stay silent)Pass criterion
1. Steady baselineRepresentative --rate for 10 min with a healthy backendAll six monitors stay silent; compare accepted/sent rates only in a pipeline without filtering, sampling, generation, or fan-outQueue remains bounded and drains after traffic stops; RSS reaches a stable operating range
2. Memory guardrailIn staging, lower the configured limiter threshold or raise load until refusals recur for more than 5 min; preserve container headroomMonitor 2 fires after its pending duration; Monitor 6 fires only if RSS also crosses 75% for 5 minNo OOMKills; refusal stops after load falls; upstream retry behavior is recorded
3. Short backend stallPause backend for 2 min with enough queue space and retry time to retain the trafficQueue/in-flight pressure is visible; Monitor 1 may remain pending or silent, and Monitor 3 should not fire for a pressure episode shorter than 3 min; Monitors 4 and 5 stay silentQueue drains on recovery without observed failed items; separately hold pressure beyond the 3m/5m pending durations to test warning delivery
4. Queue admission failureWith upstream retries understood, use a small queue and block backend until an admission fails; keep retry time longer than the testMonitor 4 fires on an observed increase; Monitor 5 need not fireMatch rejected admissions to caller responses and retries; distinguish recovered requests from losses
5. Final export failureReturn a permanent rejection, or exhaust a short, explicit retry budget while keeping the queue below capacityMonitor 5 fires; inspect error labels and logs; Monitor 4 need not fireA temporary error within the retry budget adds no final failure for that operation; a final error does
6. Persistent queue restartQueue identifiable traffic on a PVC, kill the Collector, and restart it with the same volume and component identity; restore backend within the replay retry budgetScrape availability shows the interruption; Monitors 4 and 5 need not fire for a successful replayVerify backend IDs for missing/duplicate items and confirm replay; test rebound compaction separately by crossing both configured size thresholds

One honest caveat: telemetrygen emits uniform, lightweight spans that are cheaper to serialize and compress than real production payloads. Treat any throughput ceiling you observe synthetically as an optimistic upper bound, and leave headroom. If you need a longer outage and replay comparison across in-memory and persistent queues, repeat Test 6 over your real outage budget with representative payload sizes.


Versioned references

Written by

Nicolas Narbais

Nicolas Narbais builds, breaks, debugs, and scales observability systems using OpenTelemetry and modern telemetry pipelines. He shares practical, opinionated lessons to help engineers get better signal with less noise.

Olatuak Editorial Philosophy

Better signal, not more telemetry.

Olatuak helps platform engineers, SREs, and observability teams turn noisy telemetry into clear operational decisions without blindly collecting more data.

Scroll to zoom · Drag to pan · Double-click to reset