DATA OPS

BigQuery Team Budget Breach Detector with PagerDuty Escalation

Hourly, accumulates each team's month-to-date BigQuery spend against budgets stored in Airtable.

CategoryData Ops
Enginesim
Difficultyadvanced
Triggerschedule
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerHourly schedule
  • ActionCompute month-to-date spend per team in BigQueryGoogle BigQueryBigQuery
  • ActionRead per-team monthly budgets from AirtableAirtableAirtable
  • LogicCompute percent of budget, assign warn/breach tier
  • ActionSend 90% Slack warning to team ownerSlack
  • OutputOpen PagerDuty incident for over-budget teamsPagerDutyPagerDuty

What it does

It watches month-to-date warehouse spend per team against per-team monthly budgets held in Airtable. Once an hour it recomputes MTD spend, compares it to budget, and escalates by severity: a Slack heads-up at 90 percent, and a PagerDuty incident at 100 percent so a runaway team can be throttled before the bill balloons.

When to use it

Use it when teams have committed warehouse budgets and an overrun has real financial consequence. Hourly checks catch a misbehaving backfill or scheduled query mid-day instead of at month-end, and the PagerDuty page ensures someone actually acts.

How it works

  1. 1An hourly schedule fires.
  2. 2BigQuery sums month-to-date billed cost grouped by user, joined in-query to a team via a mapping table.
  3. 3Airtable supplies each team's monthly budget.
  4. 4A logic step computes percent-of-budget per team and assigns a tier (under 90, 90-100, over 100).
  5. 5Teams in the 90-100 tier get a Slack warning to their owner.
  6. 6Teams over 100 percent trigger a PagerDuty incident routed to the data on-call.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect BigQueryDatasets, queries, schemas.
  2. 2
    Connect AirtableBases, tables, views, automations.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  4. 4
    Connect PagerDutyIncidents, on-call, escalations.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    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.