Skip to content

sozu top: H2 pane reads flood metric names the detector never emits #1810

Closed

Description

@FlorentinDUBOIS

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:

  • h2.flood.violation.glitch_window (emitted)
  • h2.flood.violation.rapid_reset, h2.flood.violation.made_you_reset, h2.flood.violation.continuation, h2.flood.violation.ping, h2.flood.violation.settings, h2.flood.violation.priority (never emitted)

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

  1. added a commit that references this issue on Oct 4, 2026
    c5fd126
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions