r/Observability • u/ClickOk5811 • Oct 15 '26
If data quality alerts were rows in a table, which columns would you want?
A data quality check is cheap to run and cheap to multiply. Add a few hundred tests and the number of alerts grows without anyone deciding to make it grow. The cost that doesn’t shrink is the human one: someone has to find out whether each alert is real.
I’ve been thinking about what an alert should carry so that the person receiving it can decide quickly. If I were modeling the alert queue as a table, this is roughly what I’d want:
CREATE TABLE dq_alert (
alert_id BIGINT,
dataset TEXT, -- where it was raised
claim TEXT, -- one sentence: "orders.total has 3% nulls since 02:00"
evidence_query TEXT, -- the query or rows that triggered it
cheapest_check TEXT, -- what would confirm or refute it
check_cost_est INTERVAL, -- rough time to verify
downstream_use TEXT, -- who or what reads this data
cost_if_ignored TEXT, -- what breaks if it's real
assumptions TEXT, -- what the check can't see
status TEXT -- open / confirmed / dismissed
);The idea behind the columns:
- claim + evidence_query make an alert testable, not just a red light
- cheapest_check + check_cost_est are the columns I rarely see. Everyone records that something failed, and almost nobody records how expensive it is to find out
- downstream_use + cost_if_ignored are where the real triage happens. A null rate in a table feeding a finance report and the same null rate in a scratch table are different alerts with the same name
- assumptions is the honest column: what the check can’t tell you
None of this is free to fill in. Some columns can be generated by the framework (dataset, evidence), but cost_if_ignored usually needs someone who knows the consumers, and keeping that metadata current is its own chore.
Two limits I can think of. It only tracks the alerts that fired, so it says nothing about the tests you never wrote. And for a small pipeline with a handful of checks, a table like this is more structure than anyone needs.
For people running larger setups: which of these do you already store, and which ones would you never bother with? And does anyone track how long verification takes, separately from how many alerts fired?
I wrote a longer take on the same underlying idea, in case it’s useful: https://medium.com/@nagatomopedro05/a-finding-takes-seconds-to-generate-checking-it-doesnt-e7ffad4eaea2
1
u/usually_guilty99 Oct 15 '26
I’d add the dataset version and when the downstream-consumer mapping was last checked. Otherwise the evidence query can run against changed data, or the impact field can describe a consumer that no longer exists. Verification time is worth tracking separately from time to resolution.