Pcornel
Observability · Telemetry Pipelines

Backpressure and Buffering

Cheat sheet · https://pcornel.dk/topic.php?topic=6228

Back to the Topic

Answer

Backpressure is how a pipeline reacts when downstream is slower: buffers/queues absorb bursts (memory or disk), then the pipeline slows senders or drops data.

Remember

Size queues for expected outage duration. Persistent (disk) queues survive restarts. Decide which data may be dropped first.

First checks

  • otelcol_exporter_queue_size — first check for this topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool check config prometheus.yml — config valid

Verify in this order

burst/outage → queue fills → backpressure → retry or drop

Where it usually breaks

Unbounded memory queues crash the collector.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6228

Confirmation

Confirm action

Continue?