How do you define SLOs for asynchronous pipelines (queues, batch jobs)?
AdvancedProductionAlerting Strategy, SLOs & Runbooks
Answer
Request success rate does not describe a pipeline. Use freshness and correctness:
- Freshness: "99% of events are processed within 5 minutes of being produced", measured with an end-to-end latency histogram or
time() - last_processed_timestamp_seconds. - Completeness: "99.9% of daily batches complete before 06:00".
- Correctness: records that pass validation / records processed.
time() - max(pipeline_last_success_timestamp_seconds{pipeline="billing-export"}) > 3600
Emit timestamps from the job itself (push to Pushgateway only for batch jobs) so a job that never starts is still caught.
More on Alerting Strategy, SLOs & Runbooks
What is the single most important rule for deciding whether an alert should page a human?BeginnerWhat severity levels do you define, and where does each one go?BeginnerWhy do mature teams alert on SLO burn rate instead of raw error rate thresholds?IntermediateIn a multi-window burn-rate alert, what is the short window for?AdvancedHow do you generate SLO alert rules without hand-writing dozens of burn-rate expressions?IntermediateHow do you pick an SLO target for a service that has never had one?Beginner