Site Reliability Engineering, 2nd Edition
by Betsy Beyer, Chris Jones, Christof Leng, David Huska, Jennifer Petoff, Niall Richard Murphy
Appendix G. Modern Observability: Statistics & ML
This appendix provides a deeper look into the statistical and machine learning (ML) models we use for the “Intelligent Alerting” systems described in the Observability and Monitoring chapter. While the chapter focuses on the strategic shift away from static thresholds, this appendix explores the technical underpinnings of how we create alerts that are both precise and adaptive.
A Statistical Approach for Error Rates
To move away from static alerting thresholds, we see an opportunity to apply a more rigorous statistical approach. Consider one of the most common signals: error rates. For any given request, the outcome is binary—it either succeeds or it fails. This scenario isn’t just a random stream of events; it is a classic statistical pattern that we can model with a binomial distribution.
The first step is to teach our system what “normal” looks like for each individual service. Instead of a one-size-fits-all threshold, we establish a dynamic ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access