Interview Prep/Monitoring & Observability/Alerting and Alertmanager

Inhibition rule does not suppress target alerts

AdvancedTroubleshootingAlerting and Alertmanager
Answer

Likely causes → The equal: labels are missing on one side (e.g. cluster exists on the source but not the target), or the source alert is not firing in the same Alertmanager.

Diagnose → Compare label sets of the source and target alerts in the UI.

Fix →

inhibit_rules:
  - source_matchers: [alertname="NodeDown"]
    target_matchers: [severity=~"warning|critical"]
    equal: [cluster, node]

Ensure both alerts carry cluster and node.

Prevent → Add consistent external labels and test inhibition with synthetic alerts via amtool alert add.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting and Alertmanager