alertmanager icon indicating copy to clipboard operation
alertmanager copied to clipboard

inhibit: compare value of different source and target labels

Open monkz opened this issue 8 months ago • 2 comments

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

Closes https://github.com/prometheus/alertmanager/issues/2254

Credit @swoga https://github.com/prometheus/alertmanager/pull/3525

monkz avatar Apr 11 '25 12:04 monkz

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

ddarby-lewis-oxe avatar Oct 03 '25 10:10 ddarby-lewis-oxe

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 avatar Nov 04 '25 21:11 Spaceman1701