How do you handle SLIs for low-traffic services?
AdvancedConceptSLIs, SLOs & SLAs
Answer
With 100 requests a day, one failure is a 1% error rate, so burn-rate alerts flap. Options:
- Add synthetic traffic to raise the volume and catch outages between real requests.
- Use time-based SLIs (good minutes / total minutes) instead of request ratios.
- Combine several small services or endpoints into one SLO.
- Lengthen alert windows and require a minimum request count before alerting:
slo:sli_error:ratio_rate1h > (14.4 * 0.001)
and on() sum(rate(http_requests_total{job="admin"}[1h])) * 3600 > 50
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