Five Pillars of Observability

A contract states what should be true about one dataset. Observability measures what is true across every table, including the many that have no contract yet. Data observability sorts those measurements into 5 pillars, each answering one question about a table. The same 5 serve 2 jobs: an order of questions during an incident, and a grid for deciding what a quality program covers.

PillarQuestionMeasured asTypical fault
FreshnessWhen did new data last land?minutes since the newest `loaded_at`a stalled upstream job
VolumeDid the expected amount arrive?rows per partition against recent historya dropped file, a doubled load
SchemaDid the shape change?column names and types against yesterdaya removed or retyped column
DistributionAre the values plausible?null rate, distinct count, percentilesa unit change, a flood of defaults
LineageWhat feeds this table, and what reads it?upstream and downstream datasets as a graphwhere a fault began and who it reaches

Lineage is the dependency graph between datasets: for any table, the tables its rows come from and everything built on it downstream, dashboards and models included. The first 4 pillars say that something is wrong with a table. Lineage says where to look upstream for the cause and whom to warn downstream.

The pillars as an incident order

Ask the pillars in order of cost. Freshness and volume come from load metadata in seconds, and together they split every incident in 2: data that did not arrive, and data that arrived wrong. Schema is a comparison of column lists. Distribution needs a scan of values, so it comes last. Lineage runs through all of it: test the symptom table first, then step upstream one table at a time until the failing pillar reads normal; the fault began in the next step downstream.

On Oct 22 the revenue dashboard shows 0 revenue for the EU market. Walking upstream, the pillars report this:

TableFreshnessVolumeSchemaDistribution
`revenue_daily`on timenormalunchangedEU revenue is 0
`orders_curated`on time31% below its 28-day medianunchangedno EU rows
`orders_raw`on time412,000 rows, normalunchangednew `currency` value `eur` in 31% of rows

Freshness is green everywhere, so the data arrived. Volume is normal in orders_raw and 31% low one step later, which places the loss in the step that builds orders_curated. That step inner joins orders to exchange rates on currency, and the distribution of orders_raw shows why rows vanish: a checkout release began sending lowercase eur, which matches no rate. Walking lineage downstream from orders_curated then finds a second victim, fraud_features, which no dashboard showed. A contract gate with a fixed currency list would have stopped this batch before orders_curated.

Upstream from the dashboard, the fault first shows at orders_curated. Downstream from that table, fraud_features lost its EU rows too.
  • Checkout events (source, event queue)
  • orders_raw (bronze, raw table)
  • fx_rates (storage, reference table)
  • orders_curated (silver, inner join on currency)
  • revenue_daily (gold, daily aggregate)
  • fraud_features (gold, feature table)
  • Revenue dashboard (consumer, finance)
  • Fraud model (consumer, scoring service)
  • Checkout events -> orders_raw
  • orders_raw -> orders_curated
  • fx_rates -> orders_curated
  • orders_curated -> revenue_daily
  • orders_curated -> fraud_features
  • revenue_daily -> Revenue dashboard
  • fraud_features -> Fraud model

The pillars as a coverage map

To design a program, lay tables against pillars and mark each cell with whether an automated check covers it. Rank rows by how many people and systems read the table, then close gaps in the top rows first. Here is this pipeline as it stood before the incident:

TableFreshnessVolumeSchemaDistributionLineage
`orders_raw`yesyesyesgapyes
`orders_curated`yesgapyesgapyes
`revenue_daily`yesgapgapgapyes
`fraud_features`gapgapyesgapyes

The incident passed through 2 gaps: no distribution check on orders_raw and no volume check on orders_curated. Either one would have fired hours before finance noticed. revenue_daily has 3 gaps of its own, so a fault that started there would surface only on the dashboard.

The sessions_daily dashboard shows average session length doubled overnight. sessions_daily is fresh, its row count matches history and its schema is unchanged. What comes next?

About this lesson

This section is part of the Data Quality: Advanced lesson on DataDriven, the home of data engineering. Lessons cover SQL, Python, Spark, data modeling and pipeline architecture, and each section pairs its explanation with worked examples and practice you run as you go.