Interview Prep/Monitoring & Observability/Alerting Strategy, SLOs & Runbooks

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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting Strategy, SLOs & Runbooks