Skip to content

update inhibitor index to store all matched alerts - #5542

Draft
Spaceman1701 wants to merge 1 commit into
prometheus:mainfrom
Spaceman1701:fix-inhibitor
Draft

update inhibitor index to store all matched alerts#5542
Spaceman1701 wants to merge 1 commit into
prometheus:mainfrom
Spaceman1701:fix-inhibitor

Conversation

@Spaceman1701

@Spaceman1701 Spaceman1701 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

This fix is based on HRT's inhibitor implementation. It updates the index so that each equal-labels key holds a FingerprintSet instead of a Fingerprint so that the index stores every matching source alert instead of one matching source alert.

This allows the inhibitor to search through all the alerts in the index for the set of equal-labels to select the best candidate. Worst case, this does degrade inhibitor performance to O(n), but in practice it should be similar to today (since the first element of the set is most likely a viable candidate).

[BUGFIX] fix various issues with the inhibitor improperly skipping inhibits when the indexed source alert is resolved but other alerts are present.

Signed-off-by: Ethan Hunter <ehunter@hudson-trading.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.

1 participant