During an outage, your Prometheus and Grafana went down too, because they ran in the same cluster. How do you design monitoring so this doesn't happen?
AdvancedScenarioOutages and incident response
Answer
Situation read → If monitoring shares fate with what it monitors, you go blind exactly when you need it most.
What I'd do →
- Run the alerting path outside the cluster it watches: a separate monitoring cluster, a managed service (Amazon Managed Prometheus and Grafana), or remote-write from in-cluster agents to a central store.
- Add a dead man's switch: an always-firing alert (
Watchdog) sent to an external service, which pages if it stops arriving.
- alert: Watchdog
expr: vector(1)
labels: { severity: none }
annotations:
summary: "Alerting pipeline heartbeat"
- Keep external synthetic checks independent of your stack entirely.
- Run Alertmanager in HA (multiple replicas) in a different failure domain.
- Make sure on-call can reach dashboards when SSO or VPN is down (break-glass access).
Why → The heartbeat alert detects silent failure of the alerting system, which no normal alert can.
Interview tip → Mention the dead man's switch; it shows you've thought about monitoring the monitors.
More on Outages and incident response
You're on call and get paged at 3 AM: "Checkout error rate 25%". What do you do in the first 15 minutes?BeginnerA major outage involves four teams and everyone is talking at once. You're asked to be incident commander. What do you do?IntermediateHow do you prove your platform survives the loss of a whole Availability Zone?AdvancedOn-call gets 300 alerts a day and people have started ignoring them. How do you fix alerting?IntermediateA customer told you about an outage on social media before your monitoring did. How do you fix detection?BeginnerDuring an incident, you can roll back or push a forward fix the developer says is ready in 10 minutes. How do you decide?Intermediate