Which responses should count as "bad" in an availability SLI?
IntermediateConceptSLIs, SLOs & SLAs
Answer
Count as bad anything that is the service's fault: 5xx responses, timeouts, connection resets, and 429s or 503s returned because the service is overloaded. Usually exclude client errors (400, 401, 403, 404) because the request itself was invalid. Be careful: a bug that returns 400 for valid input or 404 for existing objects is a real failure, so some teams track specific 4xx codes as bad. Also exclude health checks and synthetic traffic from the denominator, or they dilute the ratio.
More on SLIs, SLOs & SLAs
Define SLI, SLO and SLA with an example of each.BeginnerWhy should the SLA be looser than the SLO?BeginnerWhy are SLIs best expressed as a ratio of good events to valid events?IntermediateWhat is the difference between request-based and time-based (window-based) SLIs?AdvancedWhere should you measure an SLI, and what are the trade-offs?AdvancedWhat types of SLIs exist beyond availability and latency?Intermediate