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
hubble_lost_events_total{source="hubble_ring_buffer"} was climbing at a
constant 12/min on siriussec (72,529 cumulative) and ~4/min on linode with
nothing dropped: Ring.read() synthesises a HUBBLE_RING_BUFFER lost event when
a backwards walk reaches the ring's read boundary, and getFlowRate() walks a
full minute on every hubble status / 5 s health probe / UI request. At
siriussec's ~80 flows/s the 4095-event default only holds ~51 s, so every
probe hit the boundary (cilium#46584).
16383 holds >= 60 s at the 24 h peak on every node (linode 196 flows/s ->
83 s, siriussec 101/s -> 161 s, rpi 38/s -> 431 s), so the walk exits on the
timestamp check instead. Ring accepts 2^n-1 only.
Also wire the sensor gate: recorders hubble:lost_events_increase_30m /
hubble:flows_processed_increase_30m, alert HubbleFlowWindowIncomplete when a
30 min window has any loss (a lossy window may not be reported as clean),
HubbleFlowLossMaterial above 0.1% of processed flows, and
HubbleFlowSensorMissing when the counters disappear entirely.