Data quality
48
Tables monitored
2
Failing now
14
Tables with no checks
4 min
Since last run
events_raw, rows per day. Friday is the failure: the pipeline reported success and delivered almost nothing, which is the shape that survives longest because everything upstream is green.
What matters here
- A quality monitor is four parts: scheduled checks, thresholds from history, an owner per table, and a failure record.
- A job succeeding is not the same as data arriving. Freshness and row count catch what a green pipeline hides.
- Set thresholds from historical behavior, not from a guess. A table that normally varies by 40 percent should not alert at 10.
- Alert a named owner, not a shared channel. A channel everybody watches is a channel nobody watches.
- Fewer checks that people act on beat more checks that people mute. Muting is the failure, not the noise.
- Record every failure. The chronic sources are more useful to know than any individual incident.
Who this is for
You run data or analytics engineering, and something has been quietly wrong for longer than you would like to admit. What you want is to find out before the person reading the dashboard does.
How it works in practice
What the monitor does while nobody is watching, and what happens when something breaks.
- 1
Checks run on a schedule against registered tables
Not the whole warehouse. Coverage of what people actually use beats coverage of everything.
- 2
Freshness and volume go first
Because a job that succeeds and delivers nothing is the failure that survives longest.
- 3
Thresholds come from how the table behaves
Proposed from history, with weekly and monthly seasonality handled, so Saturday is not an incident every week.
- 4
A failure alerts a named owner, not a channel
With the downstream dashboards listed in the alert itself.
- 5
Related failures group into one alert
A source system down is one cause and twelve symptoms, and only one of those is worth waking somebody for.
- 6
Every failure is kept, and the pattern reported
Which tables fail most, which upstream sources are behind them, and which checks have never fired at all.
What a quality monitor is made of
A quality monitor is not a pipeline status page. It is four parts, and the second is what decides whether anyone still reads the alerts in three months.
Checks that matter
Freshness, row count, null rate on required fields, uniqueness on keys, referential integrity, and range checks on the numbers people quote. Run against the tables people actually use, not every table you have.
Thresholds from history
Learned from how the table has actually behaved rather than picked. A table that swings 40 percent on a Monday should not alert at 10 percent every Monday.
An owner per table
A named person alerted directly. A shared channel is where alerts go to be scrolled past.
A failure record
Every failure, its duration, and who resolved it. The pattern across failures tells you which upstream sources are chronically unreliable, which no individual alert can.
The prompts
Paste these into Claude Code, Codex or Cursor in order. Each one leaves you with something that runs, so you can stop after any step.
These prompts start from a Helix project, which is what handles sign-in, credentials and hosting. Start with Helix.
Check the things a green pipeline hides
Freshness and volume first, because those catch the quiet failures.
Create a Helix app: a data quality monitor.
Start with the checks that catch the failure nobody notices: a job that succeeds and delivers nothing.
Freshness: how long since this table last received a row, against an expectation per table. Volume: how many rows arrived in the last period, against what normally arrives. Those two catch more real problems than everything else combined, because a pipeline reporting success while silently delivering an empty file is the classic six-weeks-wrong scenario.
Then the rest: null rate on fields that should never be null, uniqueness on anything that is meant to be a key, referential integrity between tables that should join cleanly, and range checks on the numbers people quote in meetings.
Let me register which tables to watch rather than watching everything. Coverage of the tables people actually use beats coverage of the warehouse.
Thresholds learned, not guessed
The difference between a monitor people read and one they mute.
Now set the thresholds, and do not ask me to invent them.
For each check, look at how the table has actually behaved over a period I choose and propose a threshold from that: the normal range, and how far outside it is genuinely unusual. Show me the history and the proposal, and let me accept or adjust.
Handle the obvious seasonality. A table that is quiet at weekends should not alert every Saturday, and one that spikes at month end should not alert every month end.
Let me mark a failure as expected, with a reason, and use those to suggest threshold adjustments. A check that is dismissed as expected three times is a check with the wrong threshold, and the app should say so rather than waiting for somebody to notice.
Alert a person, not a channel
Because a channel everybody watches is a channel nobody watches.
Give every monitored table a named owner and alert them directly.
A shared channel is where alerts go to be scrolled past. If a check fails and nobody is individually responsible for it, nobody is.
Set severity per check, and make it drive the response: a critical freshness failure on a table feeding the executive dashboard is not the same as a null rate drifting on a field nobody reads. Only the critical ones should reach anybody out of hours.
Group alerts. If a source system is down, twelve tables fail at once and that is one alert about one cause, not twelve about twelve symptoms.
And show downstream impact in the alert itself: which dashboards and reports depend on this table. An owner who can see that the board pack reads from it will respond differently.
Keep the failures, find the pattern
Because the chronic source matters more than any single incident.
Record every failure: which check, which table, when it started, when it cleared, who resolved it, and what they found.
Then report the things no individual alert can tell you. Which tables fail most often. Which upstream sources are behind those failures. Mean time to resolution by owner. And checks that have never fired, which are either well-behaved tables or badly configured checks, and it is worth knowing which.
Add a simple status page showing every monitored table, when it was last checked, and whether it is currently healthy. Put the last check time on it prominently: a monitor that has itself stopped running is the worst possible failure, because everything looks fine.
And report coverage: which tables that feed a dashboard have no checks at all. That gap is where the next six-week problem is waiting.
Connect it to real systems
The step that turns a working prototype into something with your data in it.
Now connect it to the systems we actually run, so it works on real data rather than the rows you seeded.
Anything in angle brackets is a placeholder. Swap it for whatever we use instead, and have the app name the connection it wants rather than assume a vendor, so changing my mind later is a config change and not a rewrite.
<Snowflake>. Run the checks on a schedule. Read-only access, scoped to the tables you register.
<Looker>. Read which dashboards depend on a table, so the alert can say what breaks downstream.
<PagerDuty>. Alert the named table owner, and only page for the critical ones.
<Okta>. Turn the owner recorded against a table into a real person with a current address, and flag any whose account has gone.
<dbt>. Read test results you already run, so this monitors what dbt does not rather than duplicating it.
<Fivetran>. Read sync status, which explains a freshness failure before anyone starts debugging the table.
<Slack>. Alert the named table owner, with the downstream dashboards listed in the message.
Only write where I have said to write. Everything else is read only.
Ship it
The last step of every build: a URL, and the right people on it.
Deploy my app.
What it connects to
This one is almost entirely a read, and it should be a narrow one.
-
Snowflake Run the checks on a schedule. Read-only access, scoped to the tables you register. Reads -
Looker Read which dashboards depend on a table, so the alert can say what breaks downstream. Reads - PagerDuty Alert the named table owner, and only page for the critical ones. Writes
-
Okta Turn the owner recorded against a table into a real person with a current address, and flag any whose account has gone. Reads -
dbt Read test results you already run, so this monitors what dbt does not rather than duplicating it. Reads -
Fivetran Read sync status, which explains a freshness failure before anyone starts debugging the table. Reads -
Slack Alert the named table owner, with the downstream dashboards listed in the message. Writes
Named systems are the ones most teams actually run, not a list of the only ones that work. Swap in whatever you use.
Running it for real
The build gets you a working monitor. It reads your warehouse on a schedule and its alerts reach people out of hours, so it needs to be run properly.
- 1
Get it to a URL people can open
One command takes the app from your assistant to a live address, so the people who need it get a link rather than instructions for running it locally.
- 2
Put your identity provider in front of it
Data quality failures expose table names, volumes and sometimes sample values. SSO means people sign in with their existing account, and access is scoped so owners see what they are responsible for.
- 3
Connect the system of record with managed credentials
Querying the warehouse on a schedule needs real access, and it should be read-only. Granting it to the app rather than pasting a connection string into it means it can be scoped, rotated or revoked without a redeploy.
- 4
Put a name on it
Every app carries a named owner and an entry IT can see, so the tool does not become nobody's problem when the person who built it changes role.
- 5
Know what it costs to run
Per-app spend visibility, so an internal tool cannot quietly become a line item nobody can explain.
Do this as a workflow instead
An app is only as good as the data in it. These build the integrations and automations that keep this one current, on the Tray platform. Same kind of guide, same kind of prompts.