GCP BigQuery
BigQuery shows where your BigQuery money goes: which datasets cost the most, which queries and users drive compute spend, how storage is billed, and where OneLens has found savings.
Go to Optimize → Deep Insights → BigQuery (under GCP). Last Updated, at the top right, shows when the data was last refreshed.
Datasets
Which datasets cost the most, split into compute and storage
Reservations & Slots
<<CONFIRM = what the Reservations & Slots tab shows>>
Top 100 Queries
Which queries use the most resources, and which have costly patterns
Top Users
Which users and service accounts spend the most on queries
Tickets
Savings recommendations OneLens has raised on your datasets and tables
Most tabs share the same controls: Default View to switch saved views, a search box, the date range, Export, and Filters.
Where to start
To find what is driving your BigQuery cost:
On Datasets, sort by Total Cost and open the most expensive dataset.
In its Cost & Usage Overview, check whether compute or storage is the bigger share, and which tables and principals drive compute.
On Top Users, check whether that spend comes from people or service accounts, and whether it is rising against the previous period.
On Top 100 Queries, look for queries with Optimization Signals, such as unpartitioned scans.
On Tickets, act on the recommendations for those datasets and tables.
Datasets tab

Four cards show Total Datasets, Total BigQuery Cost, Compute Cost and Storage Cost. Compute and storage each show their share of the total, and the two always add up to Total BigQuery Cost.
Search by dataset or project name.
Dataset
The dataset name, with a badge count <<CONFIRM = what the badge next to the dataset name counts>>
Project
The GCP project
Location
The dataset location, such as asia-south1 or US
Storage Billing
Logical (billed on uncompressed bytes) or Physical (billed on compressed bytes)
Compute Pricing
How queries are billed, such as On-demand
Storage Size
Total size, split into active and long-term (LT) storage
Compute Cost
Query cost for the period
Storage Cost
Storage cost for the period
Total Cost
Compute Cost plus Storage Cost for the selected date range
Prev Cost
Total cost for the previous period of the same length. If the range is 15 Sep to 14 Oct, Prev Cost covers 16 Aug to 14 Sep
Dataset details
Click a dataset to open it. Four cards show Last 30 Days Cost, Compute Cost and Storage Cost (each with its share), and the number of Tables. The page has four tabs: Dataset Details, Cost History, Cost & Usage Overview and Tickets.
Dataset Details

Resource Information
Project, dataset ID, location, creation date, default table expiration, default partition expiration, and CMEK
Table Inventory by Type
Count and size of standard, partitioned, clustered, and partitioned + clustered tables, plus clones and views
Top 5 Tables by 30-Day Cost
Each table's cost, size and type, and how many times it was queried in the last 30 days
Table Inventory by Type helps you spot large standard tables. These tables have no partitioning or clustering, so a query that filters on a date or key still scans the whole table.
Cost & Usage Overview

Pick a date range. Each row shows its Attribution, Cost and Volume.
Query Compute (Analysis)
Query cost split by the table queried, with data billed and number of runs. The heading shows the rate, for example $5.99/TiB billed. Smaller tables are grouped into one row, such as "Other 86 tables"
Query Compute - Top Principals
The same query cost split by who ran the queries, tagged Human or Service Account. Smaller principals are grouped into one row
Storage
Active and long-term storage cost, with the rate per GiB-month. The heading shows the billing model, such as Physical Billing Model
Total Cost is query compute plus storage. Top Principals shows the same compute cost from another angle, so it is not added again.
Tickets
The Tickets tab lists the tickets raised on this dataset.
Top 100 Queries tab
This tab lists the 100 queries that use the most resources in the selected period.

Use Top 100 By to choose how queries are ranked, for example by Slot Hours. Search by query fingerprint, query text or principal.
Four cards summarise the top 100:
Total Query Runs (Top 100)
How many times these queries ran in total
Unique Query Fingerprints (Top 100)
How many distinct queries are in the list
Total Query Cost (Top 100)
What these queries cost
Queries with Bad Signals (Top 100)
How many of them have at least one optimization signal
Each row is one query fingerprint. A fingerprint groups repeated runs of the same query, so Runs shows how often that query ran.
Query Fingerprint
The ID that groups runs of the same query
Preview
The start of the query and its statement type, such as INSERT. Open it to see a sample of the full query
Principal
Who ran the query, tagged Human or Service Account
Runs
Number of runs in the period
Bytes Scanned
Total data scanned, and the average per run
Slot Time
Total slot hours used
Cost
What the query cost. <<CONFIRM = why some queries show "--" for Cost>>
Cache Hit
The share of runs answered from BigQuery's cache
Optimization Signals
Costly patterns OneLens found in the query

Optimization signals
SELECT *
The query reads every column, so it scans more data than it needs
Select only the columns you use
Unpartitioned scan
The query scans a table without using partitions to limit the data read
Partition the table, or filter on the partition column
Top Users tab
This tab ranks every user and service account that ran queries in the period.

Search by principal, domain or project. Four cards show Active Principals, split into Service Accounts and Human Users, and Total Query Cost.
Principal
The user or service account
Type
Human or Service Account
Location
Where the queries ran
Project (Origin)
The project the queries ran from
Queries
Number of queries in the selected range. <<CONFIRM = what the "Data Transfer" label under some query counts means>>
Bytes Scanned
Total data scanned, and the average per query
Cache Hit
The share of queries answered from cache
Cost
Query cost for the selected range
Delta vs Prev
The change in cost from the previous period
Top Dataset
The principal's top dataset <<CONFIRM = what Top Dataset is ranked by>>
Sort by Cost or check Delta vs Prev to find the principals whose query spend is largest or growing fastest.
Tickets tab

Two cards show Total Tickets and Potential Savings (Up-To).
ID
The ticket ID, such as CP_18962
Recommendation Entity
The dataset or table the recommendation applies to
Status
The ticket status, such as To-Do or Pending Verification. Change it from the table
Policy / Rule
The policy that raised the ticket
Assigned To
Who owns the ticket. Change it from the table
Potential Savings
Estimated savings if you act on the recommendation
Recommendation
What to do
Search by ticket ID, choose which Columns to show, Export the list, or narrow it with Filters. When you mark a ticket as resolved, it moves to Pending Verification while OneLens checks the change was made.
Examples of what BigQuery tickets flag:
Datasets that compress well but use logical storage billing
Switch the dataset to physical storage billing
Partitioned tables with no partition expiration
Set a partition expiration that matches how long you need the data
Partitioned tables scanned without a filter on the partition column
Add a predicate on the partitioning column
Last updated

