Interview Prep/SRE & Reliability/Burn-Rate Alerts & Alertmanager

An inhibition rule should mute service alerts when the database is down, but both alerts arrive.

IntermediateTroubleshootingBurn-Rate Alerts & Alertmanager
Answer

Likely causes → The equal labels are not present (or differ) on both the source and target alert. If equal: [cluster] is set and the service alerts lack a cluster label, inhibition never applies. Matchers may also not match.

Diagnose →

amtool --alertmanager.url=http://localhost:9093 alert query -o extended

Compare labels on PostgresDown and the service alert.

Fix → Ensure both have the equal labels (add external_labels: {cluster: prod} in Prometheus, or relabel), and verify the matchers.

Prevent → Test inhibition with synthetic alerts posted to Alertmanager's API in staging.

All SRE & Reliability questions

More on Burn-Rate Alerts & Alertmanager