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
All SRE & Reliability questions Roadmap: SRE & incident response

More on SLIs, SLOs & SLAs