What is an error budget and how do you calculate it?
BeginnerConceptError Budgets & Burn-Rate Alerting
Answer
The error budget is the amount of unreliability the SLO allows: 1 - SLO. For a request-based SLO it is a count of bad requests; for time it is minutes of downtime.
SLO 99.9% over 30 days, 50 million requests expected
budget ratio = 0.1%
budget events = 50,000,000 x 0.001 = 50,000 failed requests
budget time = 30 x 24 x 60 x 0.001 = 43.2 minutes of full outage
More on Error Budgets & Burn-Rate Alerting
What is an error-budget policy?BeginnerWhat happens when the error budget is exhausted? Is it a punishment?IntermediateWhat should you do if the error budget is never spent?IntermediateWhat is burn rate?IntermediateHow much budget does an alert at burn rate B over window W consume?AdvancedWhy is alerting on a raw error-rate threshold ("5xx > 1% for 5 minutes") a bad idea?Intermediate