How do you set an SLO for a batch pipeline that runs once per hour?

IntermediateScenarioSLOs and Error Budgets
Answer

Situation read → Request-based SLIs do not fit; use freshness and correctness.

What I'd do →

  1. Freshness SLI: data is no older than 2 hours, 99% of the time.
  2. Correctness SLI: percentage of runs that pass validation checks.
  3. Export last_success_timestamp_seconds from the job and compute freshness:
time() - max(pipeline_last_success_timestamp_seconds{pipeline="orders_etl"}) < 7200
  1. Alert when freshness is about to breach, not after.

Why → For data pipelines, "late" and "wrong" are the user-facing failures.

Interview tip → Name the SLI types: freshness, coverage, correctness.

All Monitoring & Observability questions

More on SLOs and Error Budgets