For BigQuery and Dataform estates
Lineage parsed from Dataform SQL, rules that run Dataform when inputs land, one incident per failing action.
Today
- Nobody draws the graph a Dataform repository grows into.
- Every action runs at its hour, changed sources or not.
- Failures arrive per run, not per cause.
With Nistor
- Lineage parsed from Dataform SQL, down to the column.
- A workflow invocation starts when an action's tables change.
- One incident per action, blamed only where it really failed.
Three outcomes. Each links to the part of Nistor that does it.
The graph, drawn for you
Each column edge traced to the SQL that derives it.
Lineage you never had to draw. →Run when sources change
A quiet period makes a load that writes many times fire once.
Run when the data is ready, not when the clock says. →Blame the right action
A cancelled sibling is not blamed; a failure downstream folds under the cause.
From red to root cause on one screen. →
Your first week. One step a day; the quickstart has the commands.
- Day 1
Connect the projects
Apply the monitored_project module, so audit logs reach Nistor.
- Day 2
Grant Dataform read access
roles/dataform.viewer for repositories, compilations and invocations.
- Day 3
Open a mart's lineage
Run a compile, then follow one mart to its sources.
- Day 4
Try a rule in test
status: test evaluates it and only simulates its action.
The commands for each day are in the quickstart →
Details. How each part works, in more depth.
The Google Cloud tool reads each project and Dataform repository you list. Each Dataform action and assertion becomes a node, between the BigQuery tables it reads and the tables it writes. Table lineage comes from Dataform compilation results and view definitions. Column lineage is parsed from the SQL of Dataform actions, BigQuery views and source files. The reference Terraform schedules the compile daily (0 2 * * *).
Events arrive through Cloud Logging. The monitored_project Terraform module creates eleven log sinks in each monitored project, among them BigQuery job completions, table reads and table data changes. Nistor matches them to nodes in the graph and forwards an event to the scheduler only when a rule listens for it. The BigQuery events record the bytes billed per job. Dataform workflow invocations started outside Nistor are polled every 60 seconds and recorded as runs.
Nistor reads each project as a connection service account. The module can bind the default read roles, roles/dataform.viewer among them. The BigQuery roles you grant yourself: roles/bigquery.metadataViewer in each monitored project, and roles/bigquery.jobUser in the billing project. The default roles read metadata only. The freshness probe reads a table's last modification with tables.get, which runs no job and bills nothing.
Rules that run Dataform
The dataform_run action starts a workflow invocation for the target actions, from the latest compilation of a release configuration. A listener with ancestor_depth: direct_materialized takes the nearest materialised tables upstream, reaching through Dataform actions. Event types match exactly: a rule that listens for BIGQUERY_MERGE does not fire on BIGQUERY_INSERT. wait_for_all_ancestors holds the rule until every direct ancestor has produced a new event since the last run. max_estimated_cost_usd dry-runs the SQL first and blocks a run whose estimate is above the limit.
Rule Lab shows what a draft rule would do before you save it. It replays when the rule would have fired over the last 7 to 90 days, next to what ran. It shows the nodes the rule would match, and whether it wins the priority contest with the rules already on them. Nothing is stored until you save. A rule with status: test is evaluated, but its action is only simulated: it opens no incident. Running a Dataform action from a rule needs actions:run_dataform, which the data-engineer role template holds.
One incident per failing action
When one Dataform invocation fails, only the actions that really failed carry an incident. An action that Dataform cancelled because a sibling failed, or because the invocation timed out, is collateral and does not. Each further failure of the same action adds to its count, and a later success closes it, whether Nistor or someone else started the run. An interrupted Dataform dispatch is recorded as failed, not started again, because Dataform offers no way to find the invocation it started. Dataform assertion results as checks and incidents need the Data quality module of Nistor Enterprise.







