Data observability: signals, tools and build vs buy

The five signals that catch silent pipeline failures, the SQL to monitor each one yourself, and an honest map of the tools: Monte Carlo, Datadog, Bigeye, Anomalo, Elementary, Soda, GX.

Data observability is the practice of continuously monitoring the health of your data and pipelines, so a team learns that a table went stale, shrank by half or changed shape before a stakeholder finds it in a dashboard. The term was coined in 2019 by a co-founder of Monte Carlo, whose definition is “full visibility into the health of your data and systems”. In practice it comes down to five signals: freshness (did new data arrive on time), volume (did the expected amount arrive), schema (did the structure change), distribution (do the values still look normal) and lineage (what is upstream and downstream of the thing that broke). The first four detect incidents; lineage tells you where they came from and who they hurt. None of this needs a vendor to start. Every signal can be computed with SQL against warehouse metadata, and the real build-or-buy question is about coverage, alert tuning and the triage workflow, not detection.

What is data observability, in concrete terms?

Software teams already accept that a service needs metrics, logs and traces even when every unit test passes. Data observability applies the same idea to tables. Tests check rules you wrote down in advance. Observability watches behaviour over time and flags what changed, including failures nobody thought to write a rule for.

Here are the five signals, what each one catches, and what you need to measure it:

SignalQuestion it answersTypical failure it catchesWhat you need
FreshnessWhen did this table last receive data?Paused connector, expired credential, stuck schedulerA load timestamp or warehouse metadata
VolumeDid roughly the expected number of rows arrive?Partial load, duplicated backfill, filter bugRow counts per period and a baseline
SchemaDid columns or types change?Renamed field upstream, type widened, column droppedDaily snapshots of column metadata
DistributionDo the values still look like last week?Null rate jumps, enum gains a new value, unit changePer-column profiles over time
LineageWhat feeds this, and what does it feed?Not a detector: scopes blast radius and root causeParsed SQL or runtime lineage events

Monte Carlo’s page lists freshness, quality, volume, schema and lineage, with “quality” covering what most people call distribution. The idea is the same.

Data observability vs data quality: what is the difference?

The two overlap, and vendor blogs frame the relationship to suit whatever they sell. A practical split:

Data quality testingData observability
Starts fromRules you know in advanceHistorical behaviour of the data
Typical checkorder_id is unique, status is in a listRow count is 4 standard deviations below normal
CatchesKnown failure modesUnknown and gradual failure modes
Lives indbt tests, contracts, CIA monitoring service on a schedule
Noise riskLow: a rule either holds or notHigh: baselines need tuning
Effort per tableSomeone writes each testBroad coverage from metadata, depth needs config

Tests are precise and cheap but only find what you anticipated. Observability is broad but statistical, so it produces false positives. Mature teams run both: hard tests on the dozen models behind revenue metrics, and observability across everything else. If you have not written the hard tests yet, start with the data-quality tests every warehouse needs; observability does not replace a uniqueness test on your primary key. And when a source team is willing to commit to a schema, a data contract prevents the incident that observability would only detect.

How to monitor freshness

Freshness is the cheapest signal and the one that fires most often. The best measure is a load timestamp the pipeline writes on every row, because it measures pipeline health rather than when something happened in the source system:

SELECT
    max(_loaded_at)                            AS last_load,
    dateDiff('minute', max(_loaded_at), now()) AS minutes_stale
FROM raw.orders;

If you have no such column, warehouse metadata gives a coverage-wide approximation. In ClickHouse, every insert creates a data part, and system.parts records when each part was written:

SELECT
    database,
    table,
    max(modification_time)                            AS last_part_written,
    dateDiff('minute', max(modification_time), now()) AS minutes_since_write
FROM system.parts
WHERE active AND database IN ('raw', 'analytics')
GROUP BY database, table
ORDER BY minutes_since_write DESC;

One caveat matters: a background merge also writes a new part, so a table that received no inserts can still look fresh for a while after a merge. Treat the metadata query as a sweep for tables that are clearly dead, and use load timestamps on the tables that matter. dbt takes the same approach: source freshness runs a query on loaded_at_field when you set one, and falls back to warehouse metadata when you do not, but only on adapters that support it. dbt-clickhouse does not, so on ClickHouse you need the column.

Set the threshold from the schedule, not from a feeling. A connector that runs hourly should warn at 2 hours and error at 6. A daily batch should warn at 26 hours. A threshold tighter than the schedule’s normal jitter guarantees a muted channel within a week.

How to monitor volume

Volume failures are the ones that pass every rule-based test. A load that delivered half the rows has unique keys, no nulls and valid enums. You need a baseline. This query compares yesterday’s row count with the previous 28 days and returns a z-score. WITH FILL adds days with no rows as zeros, which is exactly the case you most want to catch:

SELECT
    d,
    n,
    round(mean_28d) AS mean_28d,
    round((n - mean_28d) / nullIf(sd_28d, 0), 2) AS z
FROM
(
    SELECT
        d,
        n,
        avg(n)       OVER w AS mean_28d,
        stddevPop(n) OVER w AS sd_28d
    FROM
    (
        SELECT toDate(_loaded_at) AS d, count() AS n
        FROM raw.orders
        WHERE _loaded_at >= today() - 29 AND _loaded_at < today()
        GROUP BY d
        ORDER BY d WITH FILL FROM today() - 29 TO today()
    )
    WINDOW w AS (ORDER BY d ROWS BETWEEN 28 PRECEDING AND 1 PRECEDING)
)
ORDER BY d DESC
LIMIT 1;

Alert when abs(z) is above 3 on a stable table, and also when n is zero: a perfectly flat baseline has a standard deviation of zero, so z comes back NULL exactly when an empty day should fire. Three refinements make this usable in production:

  1. Seasonality. B2B data drops every weekend. Compare Monday with the previous four Mondays, not the last 28 days, or the alert fires every Saturday.
  2. Complete periods only. Today’s partial count always looks low. The query above stops at yesterday for that reason.
  3. Direction matters. A drop usually means a broken load. A spike usually means a duplicated backfill. Route them with different messages, because the fix is different.

Commercial tools do the same thing with better models: they learn seasonality per table, widen bands for noisy tables and adapt after a legitimate step change.

How to detect schema changes

Schema drift is the upstream change nobody announced: a column renamed, an Int32 widened to Int64, a field dropped from an API payload. Detecting it needs history, so snapshot column metadata daily and diff the snapshots:

CREATE TABLE monitoring.column_snapshots
(
    snapshot_date Date,
    database      String,
    table         String,
    name          String,
    type          String
)
ENGINE = MergeTree
ORDER BY (database, table, snapshot_date, name);

-- run once a day from your scheduler
INSERT INTO monitoring.column_snapshots
SELECT today(), database, table, name, type
FROM system.columns
WHERE database IN ('raw', 'analytics');

The diff finds added columns, dropped columns and type changes in one pass:

SELECT
    database,
    table,
    name,
    anyIf(type, snapshot_date = today() - 1) AS type_before,
    anyIf(type, snapshot_date = today())     AS type_now
FROM monitoring.column_snapshots
WHERE snapshot_date IN (today() - 1, today())
GROUP BY database, table, name
HAVING countIf(snapshot_date = today() - 1) != countIf(snapshot_date = today())
    OR type_before != type_now;

An empty type_before means the column is new; an empty type_now means it disappeared. Not every change is an incident. An added column is usually harmless, while a dropped or retyped column that a model selects is a breakage waiting for the next run. This is where lineage earns its keep: it tells you whether anything downstream reads the column that changed.

How to monitor value distributions

Distribution monitoring catches the subtle failures: a mapping that started writing nulls, an enum that gained a value, an amount column that switched from cents to euros. Pick the columns that feed metrics and profile them per day:

SELECT
    toDate(created_at)                       AS d,
    count()                                  AS rows,
    round(countIf(customer_id IS NULL) / count(), 4) AS null_rate_customer,
    uniq(country_code)                       AS distinct_countries,
    quantile(0.5)(amount)                    AS p50_amount,
    quantile(0.99)(amount)                   AS p99_amount,
    round(countIf(status = 'paid') / count(), 4)     AS paid_share
FROM analytics.fct_orders
WHERE created_at >= today() - 14 AND created_at < today()
GROUP BY d
ORDER BY d;

Store the output in a table and apply the same baseline logic as for volume. Two notes on the functions: uniq and quantile are approximate in ClickHouse, which is fine for monitoring and much cheaper than exact versions. And keep the column list short. Profiling every column of every table every hour is how observability turns into the largest line on the warehouse bill.

Lineage: the signal that turns alerts into answers

Lineage does not detect anything. It answers the two questions every alert raises: where did this come from, and who is affected? Without it, a volume alert on raw.orders is a puzzle; with it, the alert lists the six models and three dashboards that are now wrong.

There are two ways to get it. Static lineage parses the SQL of your models (dbt manifests, compiled queries) and maps output columns to input columns. Runtime lineage collects events from jobs as they run, and OpenLineage, a graduated LF AI & Data project, is the open standard for those events, with Marquez as its reference implementation. The trade-offs, and why column-level matters more than table-level for impact analysis, are covered in column-level lineage explained.

A cheap proxy for downstream impact, if you have nothing else, is query history. This shows which tables are actually read, and by how many users, over the last week:

SELECT
    arrayJoin(tables) AS table_name,
    count()           AS select_queries,
    uniq(user)        AS users
FROM system.query_log
WHERE type = 'QueryFinish'
  AND query_kind = 'Select'
  AND event_time > now() - INTERVAL 7 DAY
GROUP BY table_name
ORDER BY select_queries DESC
LIMIT 20;

system.query_log is per server, so on a cluster query it with clusterAllReplicas. Use the result to rank where monitoring should be deepest: a table read by 40 people every day deserves tighter thresholds than one nobody has queried in a month.

Should you build or buy data observability?

Detection is the easy part, as the queries above show. The hard parts are everything around detection. Building is reasonable when:

  • You run one warehouse and a few hundred tables, and a handful of models carry the important metrics.
  • You already have a scheduler and an alerting channel, and someone owns the monitoring code.
  • Your warehouse is not well covered by commercial tools, so buying would mean the vendor’s thinnest integration.

Buying pays off when:

  • Coverage matters more than depth: thousands of tables, several warehouses, and nobody willing to configure each one.
  • Alert noise is the problem you already have. Learned seasonality and auto-tuned thresholds are where vendors spend their engineering.
  • Incident workflow matters: ownership, triage status, linked lineage and history in one place, not in a Slack thread.

A common middle path is open source on top of dbt: hard tests in dbt, an anomaly package for volume and freshness, and lineage from the dbt manifest. It costs engineering time instead of licence fees, and it covers only what dbt touches.

Data observability tools compared

Most commercial vendors now lead with AI and agent monitoring. Scope changes quickly, so treat this as a map as of November 2026.

ToolTypeApproachHonest trade-off
Monte CarloCommercial platformML monitors across freshness, volume, schema and quality, with lineage and incident workflow; now markets itself as an “Agent Trust Platform”A broad enterprise feature set; no public prices: monitors are paid for with credits, and the pricing page asks you to request a quote
Metaplane by DatadogCommercial, acquiredML-powered monitoring and column-level lineage; acquired by Datadog in April 2025, which plans to bring it into the Datadog platformNatural fit if you already run Datadog; roadmap now follows Datadog’s
BigeyeCommercial platformLineage-enabled observability and anomaly detection, positioned for enterprise “AI trust”Aimed at large enterprises; heavier than a small team needs
AnomaloCommercial platformAnomaly detection on the data itself, now positioned as an “autonomous data system for the agentic enterprise”; also monitors unstructured documentsProfiles the data, not just metadata, so compute cost scales with coverage
ElementaryOpen source (Apache 2.0) + cloudVolume and freshness anomaly tests plus schema-change tests, run as native dbt tests, with a self-hosted report and Slack or Teams alertsThe open-source version lives inside one dbt project, so tables dbt does not touch are invisible, and its lineage is table-level; ML-powered detection and column-level lineage are in the paid cloud
SodaSource-available core + cloudYAML data contracts verified by Soda Core; anomaly detection monitoring in Soda CloudSoda Core v4 ships under the Elastic License 2.0, not an OSI open-source licence; its v4 packages include no ClickHouse connector as of November 2026
Great ExpectationsOpen source (Apache 2.0)GX Core, a Python library of declarative “expectations” run in your pipelines; now stewarded by Fivetran, announced in May 2026A testing framework rather than an observability product: no learned baselines without extra work. The hosted GX Cloud went to FICO and stopped being publicly available on 1 June 2026
OpenLineage + MarquezOpen standardRuntime lineage events from Airflow, Spark, dbt and othersLineage only; you still need detection and alerting elsewhere
GoniCommercial platformFull disclosure: this is our product. Tests, source freshness contracts, column-level lineage and metric anomaly alerts built into the same platform as the warehouse and BIClickHouse is the only warehouse it queries, it is not open source, and it does not learn per-table baselines automatically the way dedicated observability vendors do

A note for ClickHouse users: coverage varies most here. Check each vendor’s integration page for ClickHouse specifically, and ask whether monitors run on metadata (cheap) or by querying the data (accurate, but billed against your cluster). Elementary lists dbt-clickhouse among its supported adapters, but confirm support for your adapter version before you rely on it.

How to choose a data observability tool

Work backwards from the incident you are trying to prevent, not from the feature list:

  1. List your last five data incidents. For each, which signal would have caught it, and how much earlier? If every answer is “a uniqueness test”, you need tests, not a platform.
  2. Count the tables that matter. Under a few hundred, the SQL in this post plus a scheduler covers most of it. Thousands of tables across several warehouses is where commercial coverage pays off.
  3. Check your warehouse’s integration depth. A tool with first-class Snowflake support and a thin ClickHouse connector is a different product on ClickHouse.
  4. Run a two-week trial on real tables and count the alerts. The number that matters is the share of alerts that led to action. A tool that sends 40 alerts a day with 2 real ones will be muted by week three.
  5. Decide who owns triage. Every tool fails when alerts land in a channel that belongs to nobody.

Where Goni fits

If your warehouse is ClickHouse and you would rather not run a separate observability service, Goni covers part of this list inside the platform itself. Tests (not_null, unique, accepted_values, row_count_min, row_count_max, freshness and admin-authored custom_sql) and per-source freshness contracts with warn_after and error_after are declared in YAML next to the semantic models and swept on a schedule, with results in a Data Quality panel and the audit log. Column-level lineage comes from the compiled semantic layer, metric alerts support z-score anomaly detection, and a trust overlay on dashboard metrics shows the compiled SQL, upstream lineage, recent test results and the last ingestion time behind each number. It does not replace a dedicated vendor’s learned baselines across thousands of tables. You can try it on your own data with the 14-day free trial or book a demo.

FAQ

What is data observability?

Data observability is continuous monitoring of the health of data and pipelines through five signals: freshness, volume, schema, distribution and lineage. Instead of only checking rules written in advance, it compares current behaviour with history and flags changes, so a team hears about stale, partial or reshaped data before stakeholders see a wrong number in a dashboard.

What is the difference between data observability and data quality?

Data quality testing checks known rules, such as a unique key or an accepted list of values, and passes or fails. Data observability watches behaviour over time and flags anomalies nobody wrote a rule for, such as a row count far below normal. Tests are precise but narrow; observability is broad but noisier. Most teams need both.

What are the five pillars of data observability?

The commonly cited five are freshness, volume, schema, distribution and lineage. Freshness asks whether data arrived on time, volume whether enough arrived, schema whether the structure changed, distribution whether values still look normal, and lineage what sits upstream and downstream. Monte Carlo, which coined the framing, lists “quality” in place of distribution on its own page.

Are there open-source data observability tools?

Yes. Elementary is Apache 2.0 licensed and runs volume and freshness anomaly tests and schema-change tests inside dbt. Great Expectations (GX Core) is an Apache 2.0 Python testing library. OpenLineage and Marquez cover lineage. Soda Core is source-available under the Elastic License 2.0. Each covers part of the problem; none matches a commercial platform’s full workflow.

How do I monitor a data pipeline without buying a tool?

Start with SQL on a schedule: a freshness query on load timestamps, a daily row count compared with a 28-day baseline, a daily snapshot of column metadata diffed against yesterday, and null rates on the columns behind key metrics. Send failures to a channel with a named owner. That covers most incidents on a few hundred tables.