Google Cloud bills rarely jump because of one big decision. They creep up through a dashboard that scans a full table every five minutes, a development cluster nobody scaled down, or a project created for a test and never deleted. The fix is not a one-off clean-up but a set of guardrails that catch spend early.

These are the controls we put in place on every Google Cloud environment we manage, starting with the ones that cost nothing to set up.

Budgets do not cap spend. A Cloud Billing budget sends alerts when spend crosses a threshold, but resources keep running. The limits that actually stop runaway costs are the quotas and query settings later in this guide.

1. Make spend visible first

Export billing data to BigQuery

Turn on Cloud Billing export to BigQuery for both standard and detailed usage cost. It is the only place you can query costs by project, service, SKU and label over time, and it feeds any reporting you build later. Export only starts collecting from the day you enable it, so switch it on early.

Label everything

Agree a short set of labels such as env, team and app, and apply them to projects, VMs, clusters and datasets. Labels flow into the billing export, so you can answer "what does the analytics team cost?" without guesswork. Use a separate project per environment where you can; projects are the cleanest cost boundary Google Cloud has.

Set budgets with alerts

Create budgets per project or per team, with alerts at 50, 90 and 100 percent of expected spend, plus a forecast-based alert. Send alerts to a shared mailbox or chat channel, not just the billing administrator. Budgets can also publish to Pub/Sub if you want automated responses, such as notifying an on-call engineer.

2. BigQuery: control what queries can scan

With on-demand pricing, BigQuery charges by the amount of data each query scans. A single SELECT * against a large table, run on a schedule, can cost more than the rest of the project combined.

GuardrailWhat it does
Partitioned tables with required partition filterQueries must filter on the date or ingestion partition, so they only scan the days they need
ClusteringSorts data by common filter columns, cutting the bytes scanned when queries filter on them
Maximum bytes billedA query setting that makes a query fail instead of running if it would scan more than the limit
Custom quotasDaily limits on query usage per project and per user, which stop runaway jobs and dashboards
Table and partition expirationDeletes temporary and old data automatically so storage does not grow forever

Habits that save money

  • Select only the columns you need. BigQuery stores data by column, so fewer columns means fewer bytes scanned.
  • Use the table preview to look at data instead of running SELECT * LIMIT 10, which can still scan the whole table.
  • Run a dry run or check the query validator's estimate before running anything large.
  • Point dashboards at summary tables or materialized views refreshed on a schedule, not raw event tables.

On-demand or capacity pricing?

On-demand pricing suits light or unpredictable use. Once a team runs heavy queries every day, capacity-based pricing with slot reservations usually gives a more predictable bill. Look at a month of billing export data before deciding.

3. GKE: pay for what workloads actually use

Choose the right mode

In GKE Autopilot you pay for the CPU, memory and storage your pods request. In GKE Standard you pay for the nodes, whether pods fill them or not. Autopilot is often cheaper for smaller or spiky workloads because there is no idle node capacity to pay for; Standard can win for large, steady fleets that pack nodes tightly.

Rightsize requests

Most clusters run with resource requests far above real usage, because teams copy the values from an example and never revisit them. Use the Vertical Pod Autoscaler in recommendation mode, or GKE's cost optimization insights, to see what each workload really needs, then lower requests in stages.

Scale down what is idle

  • Enable the cluster autoscaler so Standard clusters remove empty nodes.
  • Scale development and test node pools to zero outside working hours.
  • Delete clusters created for experiments; each cluster carries a management fee on top of its compute.

Use Spot VMs for fault-tolerant work

Batch jobs, CI runners and stateless workers can run on Spot VMs, which are heavily discounted but can be reclaimed at short notice. Put them in a separate node pool, keep critical services on standard nodes, and make sure workloads handle restarts.

Turn on GKE cost allocation

GKE cost allocation adds namespace and Kubernetes label data to your billing export, so you can see what each team or application costs inside a shared cluster.

4. Compute and commitments

  • Act on Recommender. Google Cloud flags idle VMs, idle persistent disks, unused IP addresses and oversized machine types. Review the recommendations monthly.
  • Commit to steady usage. Committed use discounts lower the price of compute you know you will run for one or three years. Commit only to your baseline after rightsizing.
  • Clean up storage. Set lifecycle rules on Cloud Storage buckets to move old objects to colder storage classes and delete them when they are no longer needed.

A starting checklist

  1. Billing export to BigQuery switched on
  2. Labels agreed and applied; one project per environment
  3. Budgets with alerts for every project
  4. BigQuery partitioning, maximum bytes billed and custom quotas
  5. GKE requests rightsized, autoscaling on, idle pools scaled to zero
  6. Monthly review of Recommender and the billing export

None of this slows engineers down. It just means the first person to notice a cost spike is your team, not your finance department at the end of the month.

Want guardrails like these on your Google Cloud?

We set up billing export, budgets, BigQuery limits and GKE rightsizing, then review spend with you every month.

Request a free 30-minute call