Glossary · Data observability and quality
What is Data SLA, SLO and SLI?
A data SLI is a measured indicator of a dataset's health, such as hours since last update. A data SLO is the target for it, such as updated by 07:00 UTC on 99% of days. A data SLA is the agreement with consumers built on those targets, including what happens when they are missed.
Borrowed from service reliability
The three terms come from site reliability engineering and map neatly onto data:
- SLI (indicator): a number measured continuously. For data: hours since a table was last updated, share of expected rows that arrived, share of rows passing a validity rule, number of failed pipeline runs.
- SLO (objective): a target for the SLI over a window. "The
daily_revenuetable is updated by 07:00 UTC on 99% of business days this quarter." - SLA (agreement): the promise to consumers built on SLOs, with ownership, support hours and consequences, from an escalation path to a contractual penalty for external data.
Cloud vendors publish the same structure. Google's BigQuery editions documentation, for example, lists a monthly service level objective of at least 99.99% for Enterprise, Enterprise Plus and on-demand, and 99.9% for Standard. A data team's SLA applies the same thinking to its own tables and data products.
Measure a freshness SLI on BigQuery
Freshness is the easiest SLI to automate because it needs only metadata. This query records, per day, when the first successful write to a table finished and whether it met a 07:00 UTC objective:
WITH writes AS (
SELECT DATE(end_time) AS day, end_time
FROM `region-us`.INFORMATION_SCHEMA.JOBS
WHERE creation_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 30 DAY)
AND destination_table.dataset_id = 'marts'
AND destination_table.table_id = 'daily_revenue'
AND state = 'DONE'
AND error_result IS NULL
)
SELECT
day,
MIN(end_time) AS first_successful_write,
MIN(end_time) <= TIMESTAMP(DATETIME(day, TIME '07:00:00')) AS met_slo
FROM writes
GROUP BY day
ORDER BY day DESC;
The share of days with met_slo = true is the SLO attainment for the period. Days with no write at all do not appear, so compare against a calendar of expected days.
Setting good data SLOs
- Start from consumers: when do they need the data, and what happens if it is late?
- Set SLOs only for critical datasets; an SLO on every table is noise.
- Leave an error budget. 100% is not a target; 99% on business days allows a few misses a quarter and makes trade-offs explicit.
- Tie misses to the incident process and review attainment monthly alongside data downtime and MTTD and MTTR.
- Write SLAs into data contracts with upstream producers too, so your SLO does not depend on promises nobody made.
FAQ
What is the difference between an SLA, an SLO and an SLI?
The SLI is the measurement, the SLO is the target value for that measurement, and the SLA is the commitment to a consumer that references the SLO and says what happens if it is missed. You can have SLOs without an SLA, but not a meaningful SLA without SLIs.
What should a data SLA cover?
Usually freshness (when data is available), completeness or volume, a few validity rules on key columns, the support hours and response times for incidents, and who owns the dataset on both sides. Keep it to what you can measure automatically.
