Data FinOps playbook
Data FinOps for BigQuery
Data FinOps is FinOps applied to the data platform: every BigQuery dollar gets an owner, a purpose and a unit cost, and waste is removed continuously instead of in a yearly cost-cutting panic. This playbook covers how BigQuery bills, how to attribute it, the levers that cut it, and the SQL to measure each step.
Why a data platform needs its own FinOps
The cloud bill tells you that BigQuery cost more this month. It doesn't tell you which dashboard refreshes every five minutes on a 20 TiB table, which dbt model rebuilds its full history every night, or which team's pipeline writes a table nobody has read since spring. In a data platform, one Google Cloud project serves many teams, and cost is caused by queries, pipeline runs and tables, not by projects.
That is why Data FinOps works one level down from cloud FinOps. The detail it needs is already there: BigQuery records every job, with who ran it, what it read and wrote, the bytes it billed and the slot time it used, in INFORMATION_SCHEMA.JOBS and in Cloud Audit Logs. Storage is reported per table in TABLE_STORAGE. Data FinOps turns that metadata into owners, unit costs and decisions.
Where BigQuery money goes
- Compute: either on-demand, at $6.25 per TiB scanned (US and EU multi-regions, first TiB a month free), or capacity, at $0.04 to $0.10 per slot-hour depending on the edition. The model is chosen per project. For most teams compute is the larger part of the bill.
- Storage: $0.02 per GiB-month for active logical data and $0.01 for data unchanged for 90 days, or the physical (compressed) rates, which also charge for time travel and fail-safe.
- Everything else: streaming ingestion, the Storage Read API, BI Engine and cross-region transfer.
Every price and how they interact: BigQuery pricing explained. To model your own numbers: the BigQuery pricing calculator.
Inform: make spend visible and give it owners
The FinOps lifecycle has three phases: inform, optimize, operate. Inform comes first because nobody optimizes a cost they can't see or don't own. For BigQuery, attribution has layers, from what you get for free to what needs a little discipline:
- Project and principal. Every job has both. Cost per project and per user or service account needs no setup.
- Labels. Job labels for team, product or cost center, set by client code,
bq --labelorSET @@query_label. Measure the unlabeled share and drive it down. - Tools. dbt comments every query with the model that ran it, Airflow labels jobs with the DAG and task, Looker Studio labels them with the data source. That gets cost to the pipeline and the dashboard.
- Tables and data products. Group tables into data products and you can state the unit cost of each: what it costs to build, store and serve, against who uses it.
A first look at where the money goes takes one query:
SELECT
project_id,
user_email,
ROUND(SUM(total_bytes_billed) / POW(1024, 4) * 6.25, 2) AS est_on_demand_usd,
ROUND(SUM(total_slot_ms) / 3600000, 1) AS slot_hours
FROM `region-us`.INFORMATION_SCHEMA.JOBS_BY_ORGANIZATION
WHERE creation_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 30 DAY)
AND job_type = 'QUERY'
AND statement_type != 'SCRIPT'
GROUP BY project_id, user_email
ORDER BY est_on_demand_usd DESC
LIMIT 25;Optimize: use less, and pay less for what you use
Usage: stop paying for work nobody needs
- The top queries. A handful of jobs usually makes up most of the compute bill. Fix those first: select fewer columns, filter on partition and cluster columns, make full rebuilds incremental.
- Tables nobody reads. Unused tables cost storage; dead-end tables, still refreshed but never read, also cost every refresh.
- Repeated work. Dashboards and scheduled queries that recompute the same aggregates are candidates for materialized views, summary tables, BI Engine or a slower schedule.
- Failures and retries. Failed jobs are free on-demand, but under editions their slot time is spent, and every retry spends it again.
Rates: pay the right price for each workload
- On-demand or editions, per project. Scan-heavy workloads are cheaper on editions, compute-heavy ones on-demand; the break-even for Enterprise in the US is about 9.8 GiB scanned per slot-hour. Mix both by assigning only some projects to a reservation.
- Right-size capacity. Baseline slots and commitments bill around the clock; autoscaling bills in steps of 50 slots and, without fluid scaling, for at least a minute. Size them from your actual slot curve.
- Storage billing model per dataset. Physical billing wins for well-compressed data that doesn't churn; shorten time travel where seven days of history aren't needed.
Operate: guardrails so savings stick
- Maximum bytes billed on scheduled and BI queries: a query that would scan more fails instead of running up the bill.
- Custom quotas on query bytes per user or per project per day, for sandboxes and analyst projects.
- Require partition filters on large partitioned tables, so a missing date filter is an error, not a full scan.
- A labeling policy for pipelines and BI tools, checked by the unlabeled share in the cost-by-label query.
- Budgets and alerts in Cloud Billing for totals, and job-level alerts for spikes, since the invoice arrives after the money is spent.
- A monthly review per team: their cost, their unit costs, their unused and dead-end tables.
Metrics to track
| Metric | What it tells you | Where it comes from |
|---|---|---|
| Share of spend attributed | How much of the bill has an owner beyond a project | JOBS labels, dbt comments, principals |
| Cost per data product | Unit economics: is a product worth what it costs to run | JOBS and TABLE_STORAGE grouped by product |
| GiB scanned per slot-hour | Whether a project belongs on on-demand or editions | JOBS: total_bytes_billed and total_slot_ms |
| Billed vs used slot-hours | Idle capacity in reservations | Reservation billing vs JOBS_TIMELINE |
| Spend on unused and dead-end tables | Pure waste, removable without changing any consumer | TABLE_STORAGE joined with JOBS |
| Storage growth per month | Whether retention and expiration policies work | TABLE_STORAGE over time |
A 30-day plan to start
- Week 1, see it. Run cost by project, cost by user, the most expensive queries, unused tables and dead-end tables. Share the results with the teams they belong to.
- Week 2, fix the top. Rewrite or reschedule the ten most expensive queries; switch off the dead-end pipelines their owners confirm.
- Week 3, fix the rates. Compare on-demand and editions per project, right-size reservations from the slot curve, and move well-compressed datasets to physical storage.
- Week 4, lock it in. Labels on every pipeline, maximum bytes billed on BI and scheduled queries, partition filters required on large tables, and a monthly cost review per team.
What teams have saved
- Mnemonic cut its cloud compute cost by 20% within 24 hours of onboarding, by finding a few costly queries and an unnecessary process.
- VEED reduced BigQuery compute cost by about 30% with cost observability across its platform.
- Vodafone Czech Republic cut BigQuery compute cost by 30%, validated on the first day of optimization, after moving off on-premises infrastructure.
Masthead does the attribution and the waste detection on this page automatically, for every project, from logs and metadata: no access to your data and no extra BigQuery cost. See how it works, or define data products with their unit cost.
FAQ
What is Data FinOps?
Data FinOps is the practice of managing the cost of a data platform the way FinOps manages cloud cost: make spend visible and attributed to the teams and products that cause it, optimize usage and rates, and put guardrails in place so savings stick. On BigQuery that means attributing query and storage cost to projects, users, pipelines, tables and data products.
How is Data FinOps different from cloud FinOps?
Cloud FinOps works from the billing export, which stops at SKUs, projects and labels. In a data platform one project serves many teams, pipelines and dashboards, so the useful unit is the query, the pipeline run and the table. That level of detail lives in INFORMATION_SCHEMA and Cloud Audit Logs, not in the invoice.
What are the quickest BigQuery cost wins?
Usually: fixing the handful of queries that make up most of the spend, switching off pipelines that build tables nobody reads, choosing on-demand or editions per project instead of for the whole organization, and moving well-compressed datasets to physical storage billing.
How do I attribute BigQuery cost to teams?
Start with what BigQuery already records: the project and the principal (user_email) of every job. Then add job labels for team or product, and use the labels and comments that dbt, Airflow and Looker Studio add to their jobs. The cost by label query shows how much spend is still unlabeled.
Who should own Data FinOps?
The data platform team owns the tooling and the numbers; each data product or domain team owns its own spend. Finance needs the same numbers in money, per team and per month, which is what showback provides.
