DATA OPS

BigQuery Weekly Cost Trend Digest

Every Monday it ranks scheduled queries by week-over-week slot-hour growth, flags the steepest climbers as regression candidates.

CategoryData Ops
Enginesim
Difficultyintermediate
Triggerschedule
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerWeekly Monday schedule
  • ActionAggregate this week vs last week slot-hoursGoogle BigQueryBigQuery
  • LogicRank by growth, tag steepest climbers
  • ActionLLM writes top-movers narrativeOpenAI
  • OutputPublish ranked digest to NotionNotionNotion

What it does

Produces a weekly leaderboard of which BigQuery scheduled queries are getting more expensive over time, attributing the warehouse's cost growth to specific queries trending upward rather than one-day spikes.

When to use it

When you want a recurring review artifact for cost retros — a single page showing the top cost-growers each week so the team can decide what to optimize next, even when no single day triggered an alert.

How it works

  1. 1A scheduled trigger fires every Monday morning.
  2. 2A BigQuery query aggregates slot-hours per scheduled query for the last week and the prior week.
  3. 3A logic step ranks queries by week-over-week growth and tags the steepest climbers as regression candidates.
  4. 4An OpenAI step writes a short narrative summary of the top movers and likely causes.
  5. 5A Notion action publishes a ranked table plus the narrative to the team's cost-tracking page.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect BigQueryDatasets, queries, schemas.
  2. 2
    Connect OpenAIModels, embeddings, files.
  3. 3
    Connect NotionPages, databases, comments.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    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.