Find hotspots in your Spanner Omni database
Stay organized with collections
Save and categorize content based on your preferences.
This document describes how to diagnose hotspots, or queries with high CPU
usage, in your Spanner Omni databases. The process for
diagnosing hotspots is mostly identical to
Spanner hotspot diagnosis,
with the following distinctions:
The Spanner Omni system insights dashboard is available in
Grafana. For more information on how to set up this dashboard, see
set up Grafana.
Instead of going to the Google Cloud console to query SPANNER_SYS.* tables, you
query your database directly using the
Spanner Omni CLI. For example, the following query
shows the data splits with the highest CPU usage over the past 5 hours in
the database, and ranks them by CPU usage:
Replace DATABASE_ID with the database identifier—for example,
MY_DATABASE.
Known issues
If the total compute capacity of your Spanner Omni deployment
is less than 3.5 vCPU per server, the split CPU usage scores in the
SPANNER_SYS.* tables might be lower than the correct scores on the system
insights dashboard. The dashboard shows the correct split CPU usage scores,
but you need to query the SPANNER_SYS.* tables to identify the splits
that correspond to those scores.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-05-29 UTC."],[],[]]