OpenTelemetry Collector Health Implementation Guide
By Nicolas Narbais
Make the Collector observable with self-metrics that expose queue pressure, export failures, rejected telemetry, and platform-owned response.
Make every production OpenTelemetry Collector observable across three levels so you spot queue saturation, memory-limiter rejections, and export failures before missing telemetry blinds an incident.
| Level | Goal | What it proves |
|---|---|---|
| 1 | Export Collector self-metrics | otelcol_* metrics arrive under service.name = otel-collector |
| 2 | Interpret pressure & loss signals | Queue pressure, enqueue/send failure, and refusals distinguishable |
| 3 | Add platform-owned views & alerts | Tested alerts with documented capacity actions |
The Collector’s telemetry reader exports runtime metrics directly to Tsuga. It does not pass through service.pipelines.
Before starting
- Version requirement: requires Collector
0.83or later forservice.telemetry.metrics.readers(check older syntax if pinned below0.83). - Reuse existing secret env vars: keep
TSUGA_OTLP_ENDPOINTandTSUGA_INGESTION_KEYin environment/secret stores, never in checked-in YAML. - Distinct Collector identity: set
service.name: otel-collectorplus environment and host/cluster attributes so Collector health never mixes with app services. - Named owner: assign platform ownership for capacity, upgrades, and alert response.
- Private diagnostic ports: bind
health_check,pprof, andzpagesto loopback/private interfaces only (health probes prove liveness; self-metrics prove export health).
Level 1 - Export Collector self-metrics
Add telemetry: inside your existing service: block (never create a duplicate service: block). Because pipeline exporters cannot export Collector runtime metrics, configure a dedicated periodic OTLP reader:
service:
telemetry:
resource:
service.name: otel-collector
deployment.environment.name: ${env:DEPLOYMENT_ENVIRONMENT_NAME}
metrics:
readers:
- periodic:
exporter:
otlp:
endpoint: ${env:TSUGA_OTLP_ENDPOINT}/v1/metrics
headers:
Authorization: Bearer ${env:TSUGA_INGESTION_KEY}
protocol: http/protobuf
/v1/metrics is mandatory: Regular otlp_http pipeline exporters append signal paths automatically; the service.telemetry OTLP reader posts directly to the exact URL configured.
Keep memory_limiter first in every signal pipeline, assign a real container/host memory limit so percentage thresholds work, and set GOMEMLIMIT near the hard limit where supported. Validate the rendered YAML with the deployed binary before rolling out:
otelcol-contrib validate --config=<COLLECTOR_CONFIG_PATH>
Exit criteria: Config validates cleanly, Collector starts with zero telemetry-reader/auth errors, and recent otelcol_* metrics appear in Tsuga under service.name = otel-collector.
Level 2 - Read pressure, rejection, and export failure
Watch five metric families together to locate the first overloaded boundary:
| Metric family | Meaning | First check |
|---|---|---|
otelcol_exporter_queue_size / capacity | Export slower than receive | Downstream health, network errors, export rate (before resizing) |
otelcol_exporter_enqueue_failed_* | Queue full; batches dropped pre-retry | Queue size, persistent storage health, ingest spike |
otelcol_exporter_send_failed_* | Permanent export failure after retries | Auth key, endpoint reachability, HTTP/gRPC codes, retry config |
otelcol_processor_refused_* | memory_limiter rejecting input | Memory limit, GOMEMLIMIT, receive rate, heavy processors |
otelcol_loadbalancer_backend_latency | Slow peer behind load_balancing | Inspect slow backend or rebalance; do not scale blindly |
A climbing queue with zero failures signals early pressure; rising enqueue_failed, send_failed, or refused counts mean telemetry is already being dropped. Adding replicas only helps when Collector CPU/memory is the bottleneck, not when Tsuga or the network path is saturated.
After every config change, send one known trace, metric, or log and verify it in Tsuga. A running process or valid config alone never proves export works.
Exit criteria: The team can distinguish queue pressure, queue admission failure, permanent export failure, and memory-limiter refusal, and a known test signal reaches Tsuga.
Level 3 - Make Collector health operational
Build one platform-owned dashboard showing queue ratio, enqueue failures, send failures, memory refusals, CPU/memory usage, and platform health probes, filtered by environment and tier (so node agents stay distinct from gateways).
Alert on rate of change (never lifetime counter totals) for three conditions only:
- Sustained queue saturation: queue near capacity beyond normal burst windows.
- Active data loss: sustained rate increase in
enqueue_failed_*,send_failed_*, orprocessor_refused_*. - Silent Collector: missing
otelcol_*self-metrics paired with the platform health probe to separate a dead process from a broken export path.
Pair every alert with an owner, tested notification route, and safe remediation step (gateway replica scaling, agent memory limits, or queue/storage sizing).
Exit criteria: Platform team sees pressure and loss signals, receives a tested alert for sustained failures, and has a documented first action per alert.
Troubleshooting path
Check in order: otelcol-contrib validate → process + health_check → Collector logs → otelcol_* metrics in Tsuga → end-to-end test signal.
| Symptom | Check first | Fix |
|---|---|---|
| No Collector self-metrics arrive | Collector version (0.83+), single service: block, /v1/metrics suffix | Fix service.telemetry.metrics.readers; never reference a pipeline exporter |
| Self-metrics appear under app name | service.telemetry.resource.service.name | Set dedicated otel-collector identity while keeping env/host attributes |
| Queue grows with no failures | Downstream latency and network path | Fix slow destination before enlarging queue (bigger queues consume RAM/disk) |
enqueue_failed_* rises | Queue capacity, persistent-disk space/permissions, ingest burst | Unblock export and size queue/storage for target outage window |
send_failed_* rises | Exporter error codes, DNS/TLS, secret-managed ingestion key | Repair auth or egress without pasting secrets into tickets/logs |
processor_refused_* rises | Container memory limit, GOMEMLIMIT, processor load | Raise memory boundary or shed load upstream |
Completion criterion
Recent otelcol_* self-metrics appear in Tsuga under a distinct Collector identity, a known test signal passes through to Tsuga, and the platform team owns tested alerts for queue pressure, failed export, memory refusals, and missing Collector telemetry.
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.
