inhibit: compare value of different source and target labels
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
What would be required to get this merged? I could make use of it in our alerting.
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?