A service has 20 requests per hour overnight. One failure blows the SLO alert. How do you handle low-traffic services?
AdvancedScenarioSLOs and Error Budgets
Answer
Situation read → Small denominators make ratios noisy; one failure is 5% error rate.
What I'd do →
- Add synthetic traffic (probes every 30s) to raise the baseline and detect outages.
- Use longer windows or require a minimum event count in alerts:
and sum(increase(http_requests_total[1h])) > 100. - Group small related services into one SLO.
- Consider a time-based SLI ("minutes the probe succeeded") for very low-traffic endpoints.
Why → Alerts should fire on statistically meaningful impact.
Interview tip → Name the issue: "low request volume makes ratio SLIs unstable."
More on SLOs and Error Budgets
Your company has no SLOs. A VP asks you to introduce them. Where do you begin?BeginnerChoose an SLI for a REST API: availability measured at the pod, the load balancer, or the client?IntermediateThe product owner wants a 99.99% SLO for a service that depends on a database with 99.95% availability. What do you say?IntermediateThe error budget for the month is exhausted on day 18. What happens now?IntermediateWrite an SLO in a declarative tool so teams do not hand-write burn-rate rules.AdvancedLatency SLO: "99% of requests under 300 ms." How do you measure it correctly in Prometheus?Intermediate