homek8s/monitoring
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lance Walters 3010c980ec monitoring(hubble): split ring-buffer reads out of the flow-loss gate
HubbleFlowWindowIncomplete was paging on all three nodes with
perf_event_ring_buffer and observer_events_queue at 0: the gate recorder was
increase(hubble_lost_events_total{source="hubble_ring_buffer"}[30m]), and that
counter also counts *reads* that fall outside the ring's retained window
(cilium#46584, still open in 1.20.1). Two Hubble UI/status reads an hour
(18:27, 18:35, same minutes on every node) moved it +1 each, which kept the
recorder at ~2.01 and the alert true forever. HubbleFlowLossMaterial used the
same recorder, so a handful of reads could also read as 0.03% "loss" on the
quiet Pi node.

- hubble:lost_events_increase_30m is now real loss only, per (node, source):
  increase(hubble_lost_events_total{source=~"perf_event_ring_buffer|observer_events_queue"}[30m]).
  HubbleFlowWindowIncomplete and HubbleFlowLossMaterial read it with unchanged
  thresholds, so they fire only when something was actually dropped.
- hubble_ring_buffer gets hubble:ring_buffer_read_rate_15m and the new
  HubbleRingBufferReadChurn warning at > 0.05 events/s (15m rate, 10m for).
  Current churn is ~0.001/s; the F10 health-probe storm was ~0.2/s.
- Both summaries name the source, so a read is never reported as a dropped
  flow. HubbleFlowSensorMissing unchanged.

No change to hubble.eventBufferCapacity and no Cilium roll. Docs
(docs/hubble-event-loss.md §"The gate") updated with the split and the
measured reason.

Task: t_397d180a
2026-11-27 18:46:35 -05:00
..
controllers/home monitoring(hubble): split ring-buffer reads out of the flow-loss gate 2026-11-27 18:46:35 -05:00