Interview Prep/Monitoring & Observability/Alerting Strategy, SLOs & Runbooks

What makes a good SLI, and where should it be measured?

IntermediateProductionAlerting Strategy, SLOs & Runbooks
Answer

A good SLI is a ratio of good events to valid events that correlates with user happiness: successful requests / all requests, requests under 300 ms / all requests, fresh records / all records. Measure as close to the user as practical: the load balancer or ingress beats the app process, because it also catches crashes, timeouts and requests the app never saw. Synthetic probes add coverage for low-traffic paths.

Exclude what users do not experience as failure (4xx from bad input, health checks) but be careful: a 429 from your own rate limiter is usually a real failure.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting Strategy, SLOs & Runbooks