Glossary · Cost and FinOps
What is Data FinOps?
Data FinOps applies FinOps to the data platform: it makes warehouse compute, storage and pipeline spend visible per team, pipeline and data product, so engineers and finance can remove waste, pick the right pricing model and plan spend without slowing delivery.
What Data FinOps covers
A BigQuery bill has two main parts. Compute is either on-demand, billed per TiB scanned, or capacity-based, billed per slot-hour on the Standard, Enterprise or Enterprise Plus edition. Storage is billed per GiB-month by logical or physical bytes, at a lower long-term rate for tables and partitions not modified for 90 days. BigQuery pricing has the current rates. Around those meters sit the tools that create the queries: ingestion services, dbt or Dataform models, Airflow DAGs, BI dashboards and analysts.
Data spend differs from general cloud spend in who causes it. Nobody provisions a server for a dashboard: a scheduled query, a model refresh or a person running SQL creates the cost, often in a project another team owns, and one table built by one team may be read by ten. Data FinOps works at that level, per pipeline, per table and per data product.
Inform, optimize, operate
The FinOps Foundation describes the practice as three repeating phases. On a data platform they look like this:
- Inform: attribute costs to projects, accounts, labels, pipelines and data products, and track unit costs such as cost per TiB or per data product.
- Optimize: remove waste first (unused tables, dead-end tables, refreshes more frequent than anyone reads), fix expensive query patterns such as missing partition filters, then pick a pricing model per workload: on-demand or editions, with commitments for the steady part. The pricing calculator compares the two for a given workload.
- Operate: review spend on a schedule with showback or chargeback reports, and keep guardrails in place: maximum bytes billed per query, custom daily quotas and budget alerts.
Where the numbers come from on BigQuery
- Cloud Billing export to BigQuery: the invoice view, per project, service and SKU, with project labels. Job labels reach billing data too, but under capacity pricing compute is billed per reservation to the administration project.
- INFORMATION_SCHEMA.JOBS: one row per job with the account, labels, bytes billed, slot milliseconds, referenced tables and destination table, kept for 180 days.
- INFORMATION_SCHEMA.TABLE_STORAGE: active, long-term and time travel bytes per table.
A first pass over the last 30 days of query compute across the organization:
SELECT
project_id,
user_email,
IFNULL((SELECT value FROM UNNEST(labels) WHERE key = 'team'), '(no team label)') AS team,
COUNT(*) AS jobs,
ROUND(SUM(IF(reservation_id IS NULL, total_bytes_billed, 0)) / POW(1024, 4), 2) AS on_demand_tib_billed,
ROUND(SUM(IF(reservation_id IS NOT NULL, total_slot_ms, 0)) / 3600000, 1) AS reservation_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, team
ORDER BY on_demand_tib_billed DESC, reservation_slot_hours DESC
LIMIT 50;
A NULL reservation_id marks an on-demand job. Excluding SCRIPT rows matters because the parent row of a multi-statement script repeats the totals of its child jobs. Multiply on-demand TiB by your price per TiB and slot-hours by your edition's rate for a first estimate, then reconcile with the billing export.
Common pitfalls
- Optimizing before attributing. Savings ideas without an owner for each cost line stall in discussion.
- Committing before cleaning up. A commitment locks spend in for one or three years, so switch off dead-end pipelines first.
- Treating estimates as the bill. Editions charge for allocated slots, including idle baseline and autoscaler increments, not only the slot time jobs consume.
- Alerts without limits. Budget alerts don't stop queries. On-demand limits come from custom quotas and maximum bytes billed.
Masthead runs this loop continuously for BigQuery from logs and metadata: it attributes compute and storage to projects, users, pipelines and data products and finds unused and dead-end tables (see how).
FAQ
What is the difference between FinOps and Data FinOps?
FinOps covers all cloud spend, from virtual machines to networking. Data FinOps applies the same practice to the data platform, where spend comes from queries, pipelines and stored tables rather than provisioned servers, so the unit of accountability is a pipeline, a table or a data product.
Where should a BigQuery team start with Data FinOps?
Start with attribution: export Cloud Billing data to BigQuery and query INFORMATION_SCHEMA.JOBS to see which projects, accounts and pipelines drive compute. Then remove waste, such as unused and dead-end tables, before you change pricing models or buy commitments.
Can I set a hard spending limit on BigQuery?
Cloud Billing budgets for BigQuery only send alerts, and BigQuery is not among the services eligible for spend cap budgets. For on-demand queries, the hard limits are custom quotas (QueryUsagePerDay per project, QueryUsagePerUserPerDay per user) and a maximum bytes billed setting on each query.
