Skip to content

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?

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

4 participants