Glossary · Data observability and quality
What is pipeline observability?
Pipeline observability is monitoring the jobs that move and transform data, not only the tables they produce: which runs failed, retried, slowed down or cost more than usual, what they wrote, and which downstream data they affect. It finds broken pipelines before broken tables reach users.
What to watch
A data pipeline is a chain of jobs. Observability of that chain covers:
- Run status: failures, retries and their error reasons, per pipeline rather than per job.
- Timing: start and end times, runtime trends and runs that never started.
- Output: which tables each run wrote, how many rows, and whether the schema changed.
- Cost: slot time and bytes billed per run, and how they trend.
- Dependencies: upstream sources and downstream consumers, through lineage.
Table-level data observability tells you a table is late; pipeline observability tells you which run failed, why, and what else that run feeds.
Pipeline observability on BigQuery
Every job in BigQuery is recorded in INFORMATION_SCHEMA.JOBS and in Cloud Audit Logs, whichever tool started it. Labels and service accounts identify the pipeline. This query summarizes the last week per service account and destination dataset:
SELECT
user_email AS pipeline_identity,
destination_table.dataset_id AS target_dataset,
COUNT(*) AS jobs,
COUNTIF(error_result IS NOT NULL) AS failed,
ROUND(APPROX_QUANTILES(TIMESTAMP_DIFF(end_time, start_time, SECOND), 100)[OFFSET(50)]) AS median_runtime_s,
ROUND(SUM(total_slot_ms) / 3600000, 1) AS slot_hours,
ROUND(SUM(total_bytes_billed) / POW(1024, 4) * 6.25, 2) AS on_demand_usd
FROM `region-us`.INFORMATION_SCHEMA.JOBS
WHERE creation_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
AND user_email LIKE '%gserviceaccount.com'
AND state = 'DONE'
AND IFNULL(statement_type, '') != 'SCRIPT'
GROUP BY pipeline_identity, target_dataset
ORDER BY slot_hours DESC;
Adding job labels (for example pipeline:orders_daily) in dbt, Dataform or Airflow makes grouping by pipeline exact instead of by service account.
Why it matters
- Silent partial failures. A pipeline whose last step failed after earlier steps succeeded leaves tables inconsistent with each other; table checks alone may not show it.
- Faster root cause. The failing job and its error message usually explain an incident in minutes; see BigQuery error analysis for common errors.
- Cost control. Retries and reruns are paid compute. A pipeline that fails and retries every night pays for the same work twice.
- Stack independence. Monitoring at the warehouse level covers every orchestrator and tool at once, including jobs nobody registered.
Common pitfalls
- Monitoring only the orchestrator, which misses scheduled queries, scripts and other tools.
- No pipeline identity: shared service accounts and missing labels make every job anonymous.
- Alerting on every failed job, including ones a retry fixed; alert on pipeline outcome and data impact instead.
FAQ
How is pipeline observability different from orchestrator monitoring?
An orchestrator such as Airflow knows whether its own tasks succeeded. Pipeline observability looks at what actually ran in the warehouse, including jobs from dbt, Dataform, scheduled queries, scripts and ad hoc users, and connects each one to the tables it wrote and the cost it incurred.
Can pipeline observability reduce BigQuery costs?
Yes. The same job history that shows failures also shows slot time and bytes billed per pipeline, so it reveals retries, duplicate runs, full rebuilds and pipelines whose output nobody reads.
