What is Alertmanager inhibition and when is it useful?
AdvancedConceptToil, On-Call & Alert Design
Answer
Inhibition suppresses some alerts while another alert is firing. Classic uses: suppress all warnings for a cluster when the whole cluster is unreachable, or suppress per-service alerts when the database they depend on is down.
inhibit_rules:
- source_matchers: ['alertname="ClusterUnreachable"']
target_matchers: ['severity=~"warning|page"']
equal: [cluster]
The equal field ensures you only inhibit alerts in the same cluster.