BuildImplementation guide4 min read

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.

Last updated on

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.

LevelGoalWhat it proves
1Export Collector self-metricsotelcol_* metrics arrive under service.name = otel-collector
2Interpret pressure & loss signalsQueue pressure, enqueue/send failure, and refusals distinguishable
3Add platform-owned views & alertsTested alerts with documented capacity actions
flowchart LR APP["Apps & receivers"] --> PIP["Collector pipelines"] --> EX["otlp_http/tsuga"] --> TS["Tsuga"] RT["Collector runtime"] --> TM["service.telemetry.metrics OTLP reader"] -->|"Direct to /v1/metrics"| TS RT --> HC["health_check (local probe)"]

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.83 or later for service.telemetry.metrics.readers (check older syntax if pinned below 0.83).
  • Reuse existing secret env vars: keep TSUGA_OTLP_ENDPOINT and TSUGA_INGESTION_KEY in environment/secret stores, never in checked-in YAML.
  • Distinct Collector identity: set service.name: otel-collector plus 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, and zpages to 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
Warning

/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 familyMeaningFirst check
otelcol_exporter_queue_size / capacityExport slower than receiveDownstream health, network errors, export rate (before resizing)
otelcol_exporter_enqueue_failed_*Queue full; batches dropped pre-retryQueue size, persistent storage health, ingest spike
otelcol_exporter_send_failed_*Permanent export failure after retriesAuth key, endpoint reachability, HTTP/gRPC codes, retry config
otelcol_processor_refused_*memory_limiter rejecting inputMemory limit, GOMEMLIMIT, receive rate, heavy processors
otelcol_loadbalancer_backend_latencySlow peer behind load_balancingInspect 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_*, or processor_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.

SymptomCheck firstFix
No Collector self-metrics arriveCollector version (0.83+), single service: block, /v1/metrics suffixFix service.telemetry.metrics.readers; never reference a pipeline exporter
Self-metrics appear under app nameservice.telemetry.resource.service.nameSet dedicated otel-collector identity while keeping env/host attributes
Queue grows with no failuresDownstream latency and network pathFix slow destination before enlarging queue (bigger queues consume RAM/disk)
enqueue_failed_* risesQueue capacity, persistent-disk space/permissions, ingest burstUnblock export and size queue/storage for target outage window
send_failed_* risesExporter error codes, DNS/TLS, secret-managed ingestion keyRepair auth or egress without pasting secrets into tickets/logs
processor_refused_* risesContainer memory limit, GOMEMLIMIT, processor loadRaise 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.

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