Request a demo

Glossary · Data observability and quality

What is MTTD and MTTR for data?

MTTD (mean time to detect) is the average time between a data problem starting and someone noticing it; MTTR (mean time to resolve) is the average time from detection to correct data being available again. Together they measure how long bad data affects its users.

Also called: mean time to detect, mean time to resolve, mean time to recovery, time to detection, time to resolution

How they are calculated

For a set of data incidents in a period:

  • MTTD = average of (time detected minus time the problem started).
  • MTTR = average of (time resolved minus time detected).

Their sum per incident is the data downtime it caused. Some teams measure MTTR from the start of the problem instead of from detection; either works if it is used consistently.

The hard part is the start time. "Started" means when the data first became wrong, for example the first failed or short load, which you usually only know after investigation. Recording it in the incident review makes MTTD honest; using the time the alert fired would make it zero by definition.

Track them in BigQuery

A simple incident log in BigQuery is enough to compute both, per team or data domain:

WITH incidents AS (
  SELECT 'orders-late' AS incident_id, 'sales' AS domain,
    TIMESTAMP '2026-11-02 04:00:00 UTC' AS started_at,
    TIMESTAMP '2026-11-02 09:30:00 UTC' AS detected_at,
    TIMESTAMP '2026-11-02 11:00:00 UTC' AS resolved_at
  UNION ALL
  SELECT 'events-duplicated', 'product',
    TIMESTAMP '2026-11-10 01:00:00 UTC',
    TIMESTAMP '2026-11-12 08:00:00 UTC',
    TIMESTAMP '2026-11-12 15:00:00 UTC'
)
SELECT
  domain,
  COUNT(*) AS incidents,
  ROUND(AVG(TIMESTAMP_DIFF(detected_at, started_at, MINUTE)) / 60, 1) AS mttd_hours,
  ROUND(AVG(TIMESTAMP_DIFF(resolved_at, detected_at, MINUTE)) / 60, 1) AS mttr_hours
FROM incidents
GROUP BY domain
ORDER BY domain;

It returns product with an MTTD of 55.0 hours and an MTTR of 7.0, and sales with 5.5 and 1.5. The duplicated-events incident took over two days to notice and seven hours to fix: detection, not repair, dominated its downtime.

What moves each number

  • MTTD falls with coverage and automation: anomaly detection on freshness, volume and schema across all tables, alerts routed to owners, and fewer issues discovered by business users.
  • MTTR falls with context: lineage to find the upstream root cause and the affected assets, job errors at hand, runbooks, and safe ways to repair data such as partition-scoped backfills or time travel restores.

Pitfalls

  • Averages hide outliers. One silent week-long problem matters more than ten quick fixes; report the median and the worst case as well.
  • Counting only reported incidents. Problems found by users late look the same as ones found by monitoring early unless start times are recorded.
  • Stopping the clock at the code fix. Backfills and consumer communication are part of resolution.

FAQ

What does the R in MTTR stand for?

It varies: resolve, repair, recover, restore or respond. For data teams, resolve is the most useful reading: the clock stops when correct data is available to consumers again, not when the failing job is fixed. Define it explicitly so everyone measures the same thing.

How do I lower MTTD for data problems?

Monitor every table for freshness, volume and schema changes automatically instead of waiting for users to report issues, and route alerts to the owning team. Detection time usually falls far more from coverage than from faster responders.

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.