A service normally handles 500 rps in daytime and 5 rps overnight. How do you detect a silent traffic loss?
AdvancedScenarioAlerting and On-Call Design
Answer
Situation read → A fixed floor (rps < 100) would page every night. Traffic drops are real incidents (broken DNS, routing, upstream auth) and produce no errors.
What I'd do → Compare current traffic with the same time last week and use a ratio:
- alert: TrafficDropVsLastWeek
expr: |
sum(rate(http_requests_total{job="api"}[10m]))
/ sum(rate(http_requests_total{job="api"}[10m] offset 1w)) < 0.4
and sum(rate(http_requests_total{job="api"}[10m] offset 1w)) > 20
for: 10m
labels: {severity: page}
- The second condition avoids dividing tiny numbers overnight.
- Average several previous weeks to avoid learning from a past outage.
- Cross-check with the blackbox probe.
Why → Seasonality-aware comparisons detect "too quiet" without a static threshold.
Interview tip → Mention holidays and deploys as known false-positive sources, and add a silence process.
More on Alerting and On-Call Design
Your on-call engineers receive 300 alerts a night and have started ignoring the pager. How do you fix it?IntermediateYou are asked to design alerting for a brand-new HTTP service from scratch. What do you alert on?BeginnerA "CPU above 90%" alert wakes someone at 3 a.m., but users saw no impact. What do you change?BeginnerA new hire asks: "Should we page on symptoms or causes?" How do you answer with an example?BeginnerDesign burn-rate alerts for a 99.9% availability SLO over 30 days.AdvancedPayments and platform teams share one Prometheus and one Alertmanager. How do you route alerts to the right team and severity?Intermediate