Request a demo

Glossary · Data observability and quality

What is data downtime?

Data downtime is the time during which data is missing, stale, incomplete or wrong, so the people and systems that depend on it cannot trust it. A common way to estimate it is the number of incidents multiplied by the time to detect plus the time to resolve each one.

Also called: data outage, bad data time, data unavailability

Why the term exists

Application teams have long measured downtime: minutes when a service was unavailable. Data has an equivalent that is easier to miss, because a broken table rarely returns an error. The dashboard loads, the model scores and the export runs; they just use stale, partial or incorrect data. Data downtime names that time so it can be measured, budgeted and reduced, just as uptime is for services.

How to measure it

Data downtime starts when the data stops being right, not when someone notices. It has two parts:

  • Time to detect: from the problem occurring to someone or something noticing it (MTTD).
  • Time to resolve: from detection to correct data being available again (MTTR).

Summed across data incidents, it gives a total per period, per dataset or per data product. Detection time can be the larger part: a silent failure can go unnoticed for days, while the fix takes hours.

On BigQuery, the freshness part of downtime can be reconstructed from job history. This query finds gaps between successful writes to a table that exceed its expected interval:

WITH writes AS (
  SELECT 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
  LAG(end_time) OVER (ORDER BY end_time) AS previous_write,
  end_time AS next_write,
  TIMESTAMP_DIFF(end_time, LAG(end_time) OVER (ORDER BY end_time), HOUR) AS gap_hours
FROM writes
QUALIFY gap_hours > 26 -- expected daily, with 2 hours of slack
ORDER BY next_write DESC;

Hours beyond the expected interval in each gap are stale-data downtime for that table. Wrong-value downtime needs incident records, because metadata cannot tell you that a correct-looking load contained bad numbers.

How to reduce it

  • Detect faster. Monitoring every table for freshness, volume and schema cuts detection time from days to minutes; data observability targets exactly this part.
  • Resolve faster. Lineage shows the root cause upstream and the affected assets downstream, so teams fix the right table and warn the right people.
  • Prevent repeats. Data contracts and tests on the tables involved in past incidents.
  • Set targets. A data SLA turns downtime into an agreed budget instead of an argument.

Common pitfalls

  • Counting only incidents reported by users, which leaves out everything nobody noticed.
  • Measuring from detection instead of from when the data broke.
  • Treating every table equally; weight downtime by how important the affected data is.

FAQ

How do you calculate data downtime?

Sum, over all incidents in a period, the time from when the data went bad to when it was fixed. If you only know detection and resolution times, use incidents x (time to detect + time to resolve). Five incidents that each took 6 hours to notice and 4 to fix are 50 hours of data downtime.

Is data downtime the same as BigQuery being down?

No. BigQuery can be fully available while a table is stale or wrong. Data downtime is about the data being unusable, whatever the state of the warehouse.

Read next

Browse the full glossary

Observability for every BigQuery table, in about 15 minutes

Masthead detects freshness, volume and schema anomalies, monitors pipeline errors and maps column-level lineage across all your projects, from logs and metadata only.