Skip to content

inhibit: compare value of different source and target labels#4351

Open
monkz wants to merge 2 commits intoprometheus:mainfrom
monkz:inhibit-equal-pairs
Open

inhibit: compare value of different source and target labels#4351
monkz wants to merge 2 commits intoprometheus:mainfrom
monkz:inhibit-equal-pairs

Conversation

@monkz
Copy link

@monkz monkz commented Apr 11, 2025

Adds equal_pairs config option to inhibit rules, which allows to compare the value of different source and target labels.

Closes #2254

Credit @swoga #3525

swoga added 2 commits April 11, 2025 14:00
Signed-off-by: swoga <swoga@users.noreply.github.com>
Signed-off-by: MonkZ <MonkZ@users.noreply.github.com>
Signed-off-by: swoga <swoga@users.noreply.github.com>
@ddarby-lewis-oxe
Copy link

What would be required to get this merged? I could make use of it in our alerting.

@Spaceman1701
Copy link
Contributor

Hi! This is an interesting change. I can definitely see the value. It's also a pretty significant behavior change, so we'll want to make sure it's something we want to support in the long term.

However, I think the implementation is going to need to change pretty significantly because of the new inhibitor implementation on main (see #4607). The new implementation keeps an index on the fingerprint of equal labels. I think that the indexing scheme would need to change if in order to support this behavior.

Would you be interested in trying to rebase this onto the latest main?

@Spaceman1701 Spaceman1701 self-assigned this Dec 10, 2025
@github-actions github-actions bot added the stale label Feb 8, 2026
@Malte-Wagner
Copy link

This is not forgotten :)

@github-actions github-actions bot removed the stale label Feb 18, 2026
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.

Inhibit Rules should be able to consider different labels in their equal statement

5 participants