Skip to content

fix(inhibit): fix inhibitor cache & index metrics#4637

Merged
SuperQ merged 1 commit intoprometheus:mainfrom
siavashs:fix/inhibitor-metrics
Oct 28, 2025
Merged

fix(inhibit): fix inhibitor cache & index metrics#4637
SuperQ merged 1 commit intoprometheus:mainfrom
siavashs:fix/inhibitor-metrics

Conversation

@siavashs
Copy link
Contributor

Inhibitor metrics were reset to zero if an alert matched no rules.
This change fixes the logic by moving measurement logic out of the matching loop.

Fixes metrics introduced in #4629

Inhibitor metrics were reset to zero if an alert matched no rules.
This change fixes the logic by moving measurement logic out of
the matching loop.

Signed-off-by: Siavash Safi <siavash@cloudflare.com>
@SuperQ SuperQ merged commit c0023df into prometheus:main Oct 28, 2025
7 checks passed
@siavashs siavashs deleted the fix/inhibitor-metrics branch October 28, 2025 16:19
holger-waschke pushed a commit to holger-waschke/alertmanager that referenced this pull request Nov 1, 2025
Inhibitor metrics were reset to zero if an alert matched no rules.
This change fixes the logic by moving measurement logic out of
the matching loop.

Signed-off-by: Siavash Safi <siavash@cloudflare.com>
Signed-off-by: Holger Waschke <holger.waschke@dvag.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants