DATA OPS
BigQuery Scheduled-Query PR Cost Estimate Guard
On every pull request touching a scheduled-query SQL file, dry-runs the changed query in BigQuery, estimates its daily and monthly cost, and comments the projection on the PR.
How it runs
The automated pipeline, trigger to output.
- TriggerGitHub PR touches scheduled-query SQLGitHub
- ActionDry-run changed query for estimated bytesBigQuery
- LogicProject cost, compare to budget annotation
- OutputComment estimate + set pass/fail check on PRGitHub
What it does
Catches cost regressions before they ship. When a PR modifies a scheduled-query definition in your repo, this runs a BigQuery dry-run (zero bytes billed) to get the estimated bytes scanned, multiplies out to projected daily and monthly cost, and posts the estimate as a GitHub PR comment. If the projection exceeds the query's declared budget, it sets a failing status so the regression can't merge silently.
When to use it
Use this when scheduled-query SQL lives in version control and you want cost review built into code review, not discovered later in the billing console. It shifts FinOps left into the PR.
How it works
- 1A GitHub pull_request event triggers on changes to query files.
- 2The changed SQL is dry-run against BigQuery to get estimated bytes scanned.
- 3A logic step converts bytes to projected daily/monthly cost and compares to the budget annotation.
- 4GitHub receives a PR comment with the cost projection and a pass/fail check.
- 5On breach, the merge is blocked until cost is acknowledged or reduced.
Set it up
What you configure once, before turning it on.
- 1Connect GitHubRepos, issues, pull requests, actions.
- 2Connect BigQueryDatasets, queries, schemas.
- 3Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 4Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 5Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More Data Ops workflows
BigQuery Per-Team Budget Breach Alert to PagerDuty
Tracks month-to-date BigQuery scheduled-query spend per team and, when a team crosses its monthly budget, pages the team's on-call in PagerDuty and snapshots the spend breakdown…
dbt orphan model detector with Linear cleanup tickets
Scans your dbt manifest for models that no other model, exposure, or BI tool consumes.
Weekly BigQuery Cost Trend Sheet and Exec Digest
Compiles week-over-week BigQuery scheduled-query cost by owner and dataset into a Google Sheet with trend columns.
Backfill Missing Owner Labels on BigQuery Scheduled Queries
Finds scheduled queries with no owner label, infers the likely owner from creator metadata and target-table lineage, proposes a label.
Daily BigQuery Scheduled-Query Cost Attribution to Owners
Each morning, totals the prior day's on-demand bytes-billed per scheduled query, maps each query to its owner from a label, and posts a per-owner cost leaderboard to Slack.
dbt source freshness watcher with severity-routed alerts
Checks Snowflake loaded-at timestamps against each dbt source's freshness SLA, then routes warnings to Slack and hard breaches to a PagerDuty incident so stale data never…
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
