Last updated: November 24, 2026
OTel monitoring is not finished when applications emit traces, metrics, and logs. The OpenTelemetry Collector is also a service in the critical path, and it can fail in ways that make every downstream dashboard look quiet.
The failure mode worth planning for is simple: your backend has an outage, exporter queues fill, the Collector restarts, and a disk-backed queue takes longer to reopen than Kubernetes allows. One reported production case in opentelemetry-collector-contrib describes a Collector whose startup probe killed each start attempt before the queued backlog could drain.
This guide focuses on the parts that decide whether the Collector survives that sequence: OTel Collector metrics, exporter queues, persistent storage, health checks, and Kubernetes startup probes.
What is an OTel Collector?
The OpenTelemetry Collector is a vendor-neutral service that receives telemetry, processes it, and exports it to one or more backends. It is not your observability database. It is the pipeline between instrumented workloads and the place where you query the data.
If you want the component-level architecture, start with our OpenTelemetry Collector architecture guide. For monitoring, keep the component model in view:
| Component | Monitoring question | Common examples |
|---|---|---|
| Receivers | Is telemetry entering the Collector? | otlp, prometheus, filelog |
| Processors | Is telemetry being dropped, batched, or delayed? | batch, memory_limiter, filter |
| Exporters | Is telemetry leaving for the backend? | otlp, prometheusremotewrite, debug |
| Extensions | Can operators inspect and probe the process? | health_check, pprof, zpages |
A healthy application can still disappear from your backend if the Collector refuses data, runs out of memory, or cannot export. That is why Collector self-monitoring needs its own alerts.
How the OpenTelemetry Collector works
A Collector config wires receivers, processors, exporters, and extensions into pipelines. Internal telemetry comes from the Collector process itself, not from the applications it observes.
A minimal metrics pipeline looks like this:
receivers: otlp: protocols: grpc: http:
processors: memory_limiter: check_interval: 1s limit_mib: 1024 batch:
exporters: otlp/last9: endpoint: "${LAST9_OTLP_ENDPOINT}" headers: "Authorization": "${LAST9_OTLP_AUTH_HEADER}"
service: pipelines: metrics: receivers: [otlp] processors: [memory_limiter, batch] exporters: [otlp/last9]The batch processor lowers outbound overhead. The memory_limiter protects the process when upstream volume rises faster than the pipeline can export. Exporters then send telemetry to your backend, where retry and queue settings decide what happens during outages.
For a Last9 destination, use the endpoint and full authorization header from the OpenTelemetry integration docs. Last9 supports OpenTelemetry over gRPC and HTTP; the exact endpoint is region-specific in the integration page.
Set up OTel monitoring for the Collector
The Collector exposes its own metrics through internal telemetry. By default, internal metrics are exposed through a Prometheus interface on port 8888, and logs go to stderr.
Start by enabling a metrics endpoint and scraping it:
service: telemetry: metrics: readers: - pull: exporter: prometheus: host: 0.0.0.0 port: 8888Then add a scrape job:
scrape_configs: - job_name: "otel-collector" static_configs: - targets: ["otel-collector:8888"]Metric names can vary by Collector version and telemetry level, so confirm names from your own /metrics output before copying alert rules. The signals to watch stay consistent even when names change:
- accepted and refused telemetry at receivers
- failed sends and send latency at exporters
- exporter queue size, capacity, and enqueue failures
- process CPU, memory, file descriptors, and uptime
- pod restarts, OOM kills, and config reload failures
Do not use the metrics endpoint as your liveness check. It is for monitoring and alerting. Use the health_check extension for probes.
Monitor OTel Collector in Kubernetes and Docker
In Kubernetes, give readiness, liveness, and startup probes different jobs.
- Readiness probe: decides whether the pod should receive traffic.
- Liveness probe: restarts a process that is stuck after it has started.
- Startup probe: gives a slow-starting container enough time before liveness and readiness checks take over.
A simple health_check extension plus Kubernetes probes looks like this:
extensions: health_check: endpoint: 0.0.0.0:13133
service: extensions: [health_check]startupProbe: httpGet: path: / port: 13133 periodSeconds: 10 failureThreshold: 60readinessProbe: httpGet: path: / port: 13133 periodSeconds: 10 failureThreshold: 3livenessProbe: httpGet: path: / port: 13133 periodSeconds: 10 failureThreshold: 3Those numbers are not a recommendation. They show where the budget lives: failureThreshold × periodSeconds. Measure your own cold-start and recovery time, then set the startup budget above that value.
For Docker, expose the OTLP receiver, health endpoint, and internal metrics endpoint separately:
docker run \ -p 4317:4317 \ -p 4318:4318 \ -p 13133:13133 \ -p 8888:8888 \ -v $(pwd)/config.yaml:/etc/otelcol-contrib/config.yaml \ otel/opentelemetry-collector-contrib:latestBest practices for monitoring OTel Collectors in production
Alert on outcomes, not every moving part. A busy Collector will show changing queue depth and batch latency all day. Page when telemetry is being refused, dropped, stuck, or hidden by a restart loop.
A useful production alert set starts with these conditions:
| Condition | Why it matters | First check |
|---|---|---|
| Receiver refusals increase | The Collector is rejecting telemetry before processing | memory limit, receiver limits, upstream burst |
| Exporter failures increase | The backend, network, or credentials are failing | backend status, auth header, DNS, egress, and OTLP exporter setup |
| Queue size grows and stays high | The exporter cannot drain at ingest rate | backend latency, queue capacity, worker count |
| Queue enqueue failures appear | New telemetry is being dropped before export | queue full, retry timeout, storage errors |
| Pod restarts loop | Kubernetes may be deleting your backlog window | startup probe, OOM events, config errors |
| Metrics endpoint goes silent | Your monitoring of the Collector is blind | scrape target, service discovery, pod state |
Build baselines before an outage. Record normal send latency, drain rate after a small backend interruption, cold-start time with an empty queue, and cold-start time with a realistic queue. Those measured values give you a startup-probe budget that belongs to your storage, workload, and Collector version.
Persistent queues, slow storage, and restart recovery
The OpenTelemetry Collector resiliency docs describe two layers of exporter buffering: an in-memory sending queue and persistent storage through a write-ahead log. The in-memory queue is faster, but it disappears if the process dies. Persistent queues can survive restarts because queued requests are written to disk.
That durability changes the failure mode. When the backend is unavailable, the Collector can keep accepting telemetry until the queue hits its configured limits. When the Collector restarts, it has to reopen or replay the on-disk queue before it can return to normal operation.
On slow network-attached storage, the queue directory can become the bound that matters. Your configured queue capacity says how much you can buffer. Your storage latency and probe budget decide whether the Collector can come back and drain it.
A persistent queue is still worth using when backend outages are plausible. Just monitor it as storage-backed infrastructure, not as a magic lossless buffer.
extensions: file_storage/queue: directory: /var/lib/otelcol/queues
exporters: otlp/last9: endpoint: "${LAST9_OTLP_ENDPOINT}" headers: "Authorization": "${LAST9_OTLP_AUTH_HEADER}" sending_queue: enabled: true storage: file_storage/queue retry_on_failure: enabled: true
service: extensions: [file_storage/queue]Check the exact option names against the Collector version and distribution you run. Queue and storage configuration has moved across releases, and contrib components can differ from the core distribution. Our OpenTelemetry Collector Contrib guide explains when you need the contrib image.
Silent drops the exporter metrics will not show
Persistent queues are not a guarantee that every dropped request shows up in your dashboards. Two open upstream issues are worth knowing before you rely on exporter metrics alone:
- Uncounted drops on queue errors. open-telemetry/opentelemetry-collector#16258 reports that the persistent queue can discard a request when a dispatch read or metadata write fails, without incrementing the exporter’s sent, send-failed, or enqueue-failed counters.
- No guaranteed drain on shutdown. open-telemetry/opentelemetry-collector#5902 asks for the persistent queue to be drained when the Collector stops. Until that lands, treat a stop as “the queue stays on disk”, not “the queue is empty”.
That changes how you detect loss:
- Compare receiver-accepted counts with exporter-sent counts over the same window. A gap that does not match refusals or send failures is worth investigating.
- Alert on Collector log errors from the queue and storage extension, not only on exporter metrics.
- Stop Collectors gracefully during rollouts, and check queue depth before and after a restart.
- Keep the queue directory on the same pod after a restart, so a stop does not orphan queued data.
These are upstream behaviors that may change between releases. Link your runbook to the issues and recheck them when you upgrade the Collector.
Size startup probes for Collector recovery
Do not start with a formula for queue size. Start with measurement.
Run the Collector with the same image, config, volume type, storage class, and queue directory you use in production. Then measure:
- cold start with an empty persistent queue
- cold start after a backend outage fills a representative queue
- time until the health endpoint returns success
- time until exporter queue depth starts draining
- time until queue depth returns to your normal baseline
Set startupProbe.failureThreshold × startupProbe.periodSeconds above the measured cold-start and queue-reopen time. Keep liveness strict after startup succeeds so Kubernetes still restarts a process that is genuinely stuck.
A startup probe is not a fix for an undersized pipeline. If the queue grows faster than it drains during normal operation, increasing the startup budget only delays the next incident. Fix export throughput, backend availability, storage latency, or sampling first.
Extending OTel Collector functionality
Keep contrib decisions short and explicit. Use the core Collector when its component set is enough. Use opentelemetry-collector-contrib when you need components that core does not ship, such as common vendor exporters, extra receivers, processors, or extensions.
Do not treat contrib as a performance setting. It is a distribution with more components and a larger audit surface. Pin the image version, validate configs in CI, and keep a small canary Collector for config changes that touch queues, storage, or probes.
For a longer component breakdown, use our OpenTelemetry Collector Contrib guide. For filtering, sampling, and enrichment patterns, see advanced OpenTelemetry configuration.
Advanced configuration and rollout notes
Collector config changes can break ingestion like application deploys. Treat them like production changes.
Before rollout:
- run the Collector’s config validation command in CI
- test the exact image tag you will deploy
- verify the health endpoint, metrics endpoint, and OTLP receivers bind to expected ports
- check that persistent queue directories are writable after security-context changes
- confirm that config reloads do not change listener ports unexpectedly
If you deploy with Helm, keep probe and volume settings close to the Collector config review. A YAML change that increases queue capacity but leaves the same startup probe can make recovery worse: more data survives the outage, but the pod may not get enough time to reopen it.
Hot reload helps for safe config changes, but it is not a recovery strategy. Some changes still require a restart. Our hot reload guide for the OpenTelemetry Collector covers the reload path and its limits.
Troubleshooting common OTel Collector monitoring issues
Work by symptom. The same Collector can show several at once, but one usually tells you where to start.
The exporter queue keeps growing
Check backend availability, credentials, DNS, egress rules, and send latency. If the backend is healthy, compare incoming rate with exporter drain rate. Queue growth during every traffic peak means the pipeline is undersized.
The health check fails, but metrics still scrape
The health endpoint and metrics endpoint answer different questions. Metrics can scrape while the Collector reports unhealthy, depending on which component failed. Check Collector logs and recent config changes before widening probes.
The pod restarts in a loop after an outage
Look for CrashLoopBackOff, OOM kills, storage mount errors, and startup probe failures. If you use persistent queues, test the same queue directory on the same storage class outside the live rollout. A slow replay path can look like a broken Collector when the probe budget is too small.
Telemetry is missing after recovery
Check exporter enqueue failures, retry timeouts, refused telemetry, and queue-full events. Persistent queues reduce restart loss, but they do not remove capacity limits. If the queue filled during the outage, new telemetry may have been dropped while older data was preserved. If those counters look clean but data is still missing, compare receiver-accepted with exporter-sent counts and check the Collector logs for queue or storage errors, because some persistent-queue drops are not counted in exporter metrics.
The Collector accepts data, but dashboards are quiet
Confirm that exporters point to the intended backend and that the backend is accepting the signal type you send. If you send to Last9, verify the endpoint, region, and Authorization header against the OpenTelemetry docs.
OTel monitoring should make the Collector boring. Scrape its own metrics, probe the right endpoint, measure queue recovery, and give startup probes enough time for the storage you chose. Then the next backend outage is a backlog to drain, not a restart loop that hides your telemetry.
FAQ
How do I monitor the OpenTelemetry Collector itself?
Enable the Collector’s internal telemetry, scrape the metrics endpoint, collect its logs, and probe the health_check extension separately from the metrics endpoint. Then alert on data flow, exporter failures, queue growth, and restart loops.
Which OTel Collector metrics should I alert on?
Alert on refused telemetry, failed sends, exporter queue size and capacity, send latency, process CPU and memory, and pod restarts. Use the Collector’s own metric names from your running version because names and levels can change across releases.
What is the difference between a Collector health check and its metrics endpoint?
The health_check endpoint is for orchestrator probes and says whether the Collector process should receive traffic. The metrics endpoint exposes internal telemetry for monitoring, alerting, and trend analysis.
How do persistent queues help the OpenTelemetry Collector recover from backend outages?
Persistent exporter queues store telemetry on disk when the backend is unavailable, so a Collector restart does not immediately discard queued batches. They reduce data loss, but they also make storage latency part of recovery time.
How should I size Kubernetes startup probes for an OTel Collector with a persistent queue?
Measure the Collector’s cold-start time with its real queue directory and storage class, then set startupProbe.failureThreshold × startupProbe.periodSeconds above that measured time. Keep liveness stricter after startup completes.
Can OpenTelemetry Collector persistent queues lose data silently?
Yes, in some cases. An open upstream issue reports that the persistent queue can discard a request on a dispatch read or metadata write failure without incrementing the exporter’s sent, send-failed, or enqueue-failed metrics, and queues are not guaranteed to drain on shutdown. Compare receiver-accepted with exporter-sent counts and watch Collector logs for queue and storage errors.
