DATA OPS

dbt Row-Volume Z-Score Anomaly to Linear Ticket

Compares each day's row counts for tracked Snowflake tables against their trailing 30-day baseline.

CategoryData Ops
Enginesim
Difficultyintermediate
Triggerschedule
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerSchedule after nightly load
  • ActionQuery today and 30-day counts from SnowflakeSnowflakeSnowflake
  • LogicCompute z-score and flag deviations
  • LogicSuppress known low-volume tables
  • ActionFile Linear issue per anomalyLinearLinear
  • OutputEmit summary of issues opened

What it does

After the nightly load, this workflow pulls today's row counts for a configured set of Snowflake tables and computes a z-score against each table's trailing 30-day mean and standard deviation. Tables whose volume deviates beyond the threshold become anomalies, and each one is filed as a Linear issue routed to the owning team with the numbers attached.

When to use it

Use it when row volume is your earliest signal of an upstream break — a half-empty fact table or a duplicate-driven spike usually means a pipeline regression hours before any dashboard looks wrong. Ideal for data teams that already triage in Linear.

How it works

  1. 1A schedule fires after the nightly dbt run completes.
  2. 2Snowflake returns today's row count plus the 30-day window per tracked table.
  3. 3A logic step computes the z-score and flags tables outside the band.
  4. 4A branch suppresses known low-volume tables to cut noise.
  5. 5For each surviving anomaly, a Linear issue is created with current vs baseline counts, the z-score, and a suggested owner label.
  6. 6The flow outputs a summary of issues opened for the run log.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect SnowflakeWarehouses, queries, shares.
  2. 2
    Connect LinearIssues, projects, cycles, triage.
  3. 3
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.