The backpressure counter never records, so a throttled feed looks idle on the dashboard #66
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The producer emits a backpressure event whose measurements map carries
buffer_sizeonly, while the Prometheus counter and the dashboard counter both read a:countmeasurement. The series is never created, so an operator watching for ingestion slowdown sees a flat or missing backpressure panel while overflow drops climb, and cannot tell a brief spike from an hour of throttling.Evidence
At
2f150f66:lib/aprsme/packet_producer.ex:162executes[:aprsme, :packet_producer, :backpressure]with%{buffer_size: size}, and:187does the same on deactivate.lib/aprsme/prom_ex/plugins/aprsme.ex:101registers a counter withmeasurement: :countfor that event.lib/aprsme_web/telemetry.ex:117registers the same metric for the dashboard.Expected
Each activation and deactivation increments a counter, for example by emitting
%{count: 1, buffer_size: size}.How to verify
Attach a telemetry handler to the event and assert the measurements map has
:count, or watch for{:measurement_not_found, :count}from the Prometheus core when the event fires.Acceptance criteria
Effort: S
Lens: ops