You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sozu top: H2 pane reads flood metric names the detector never emits #1810
The H2 pane of sozu top (tab 6) reads flood-mitigation counters that the H2 flood detector never emits, so most of its "flood mitigations" rows stay at 0 even while a mitigation fires.
bin/src/ctl/top/panes/h2.rs and H2_TRACKED_KEYS in bin/src/ctl/top/app.rs read these lib/src/metrics/names.rs constants:
H2FloodDetector (lib/src/protocol/mux/h2_flood_detector.rs) emits, through ConnectionH2::handle_flood_violation, the thirteen keys documented in doc/configure.md: rst_stream_window, rst_stream_lifetime, rst_stream_pre_response_lifetime, rst_stream_emitted_lifetime, ping_window, ping_lifetime, settings_window, settings_lifetime, empty_data_window, continuation_per_block, window_update_stream0_window, header_size_per_block and glitch_window, all under h2.flood.violation..
The soft-refusal counter h2.flood.stream_refused added by #1798 is not shown either.
Expected: the pane reads the names the detector emits and shows h2.flood.stream_refused, with a test pinning the names top reads to the emitter's list. The doc/configure.md flood metrics table is also missing h2.flood.violation.window_update_stream0_window.
Activity
fix(top): read the H2 flood metric names the detector emits (sozu-pro…