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.
| Pillar | Question | Measured as | Typical fault |
|---|---|---|---|
| Freshness | When did new data last land? | minutes since the newest `loaded_at` | a stalled upstream job |
| Volume | Did the expected amount arrive? | rows per partition against recent history | a dropped file, a doubled load |
| Schema | Did the shape change? | column names and types against yesterday | a removed or retyped column |
| Distribution | Are the values plausible? | null rate, distinct count, percentiles | a unit change, a flood of defaults |
| Lineage | What feeds this table, and what reads it? | upstream and downstream datasets as a graph | where 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:
| Table | Freshness | Volume | Schema | Distribution |
|---|---|---|---|---|
| `revenue_daily` | on time | normal | unchanged | EU revenue is 0 |
| `orders_curated` | on time | 31% below its 28-day median | unchanged | no EU rows |
| `orders_raw` | on time | 412,000 rows, normal | unchanged | new `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.
- 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:
| Table | Freshness | Volume | Schema | Distribution | Lineage |
|---|---|---|---|---|---|
| `orders_raw` | yes | yes | yes | gap | yes |
| `orders_curated` | yes | gap | yes | gap | yes |
| `revenue_daily` | yes | gap | gap | gap | yes |
| `fraud_features` | gap | gap | yes | gap | yes |
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?
- Check distribution on session_seconds in sessions_daily, then walk lineage upstream to the first table where the values doubled.
- Check freshness on every upstream table, because a stale input is the usual reason an average shifts overnight.
- Check volume on sessions_daily against 28 days, because a doubled average usually means half the rows went missing.
- Walk lineage downstream to list affected dashboards, then close the incident once their owners are notified.
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.