GCP Cloud SQL Metrics¶
This page lists the Cloud SQL metrics collected by the GCP app.
In the table, the metric type prefixes are omitted. For example, the full name of the auto_failover_request_count
metric, of type database
, is cloudsql.googleapis.com/database/auto_failover_request_count
.
All Database Types¶
Metric type prefix: cloudsql.googleapis.com/database/
Metric |
Description |
---|---|
|
Delta of number of instances auto-failover requests. |
|
This is > 0 if the failover operation is available on the instance. |
|
Number of cores reserved for the database. |
|
Cumulative CPU usage time in seconds. |
|
Current CPU utilization represented as a percentage of the reserved CPU that is currently in use. Values are typically numbers between 0.0 and 1.0 (but might exceed 1.0). Charts display the values as a percentage between 0% and 100% (or more). |
|
Data utilization in bytes. |
|
Data utilization in bytes. |
|
Maximum data disk size in bytes. |
|
Delta count of data disk read IO operations. |
|
The fraction of the disk quota that is currently in use. |
|
Delta count of data disk write IO operations. |
|
The current serving state of the Cloud SQL instance. Because there are seven possible states, seven data points are returned. Each of them has a different field value representing each state. Only the one that matches the current state of the instance is TRUE. All the others are FALSE. The state can be one of the following: RUNNING: The instance is running, or is ready to run when accessed. SUSPENDED: The instance is not available, for example due to problems with billing. RUNNABLE: The instance has been stopped by owner. It is not currently running, but it’s ready to be restarted. PENDING_CREATE: The instance is being created. MAINTENANCE: The instance is down for maintenance. FAILED: The instance creation failed. UNKNOWN_STATE: The state of the instance is unknown. |
|
Maximum RAM size in bytes. |
|
Total RAM usage in bytes. This metric reports the RAM usage of the database process, including the buffer/cache. |
|
RAM usage in bytes. This metric reports the RAM usage of the server, excluding the buffer/cache. |
|
The fraction of the memory quota that is currently in use. |
|
Number of connections to databases on the Cloud SQL instance. Only applicable to MySQL and SQL Server. |
|
Delta count of bytes received through the network. |
|
Delta count of bytes sent through the network. |
|
Number of failed attempts for archiving replication log files. |
|
Number of successful attempts for archiving replication log files. |
|
Indicates time taken from primary binary log to IO thread on replica. Only applicable to replicas. |
|
Number of seconds the read replica is behind its primary (approximation). |
|
The current serving state of replication. |
|
The current serving state of the Cloud SQL instance. This can be one of the following: RUNNING: The instance is expected to be running. If an instance experiences unplanned (non-maintenance) downtime, the state will still be RUNNING, but the database/up metric will report 0. SUSPENDED: The instance is not available, for example, due to problems with billing. RUNNABLE: The instance has been stopped by the owner. It is not currently running, but it’s ready to be restarted. PENDING_CREATE: The instance is being created. MAINTENANCE: The instance is down for maintenance. FAILED: The instance creation failed or an operation left the instance in an unknown bad state. UNKNOWN_STATE: The state of the instance is unknown. |
|
Indicates if the server is up or not. |
|
Delta count of the time in seconds the instance has been running. |
MySQL databases¶
Metric type prefix: cloudsql.googleapis.com/database/mysql/
Metric |
Description |
---|---|
|
Number of unflushed pages in the InnoDB buffer pool. |
|
Number of unused pages in the InnoDB buffer pool. |
|
Total number of pages in the InnoDB buffer pool. |
|
Delta count of InnoDB fsync() calls. |
|
Delta count of InnoDB fsync() calls to the log file. |
|
Delta count of InnoDB pages read. |
|
Delta count of InnoDB pages written. |
|
Delta count of statements executed by the server. |
|
Delta count of statements executed by the server sent by the client. |
|
Delta count of bytes received by MySQL process. |
|
The error number of the most recent error that caused the I/O thread to stop. |
|
The error number of the most recent error that caused the SQL thread to stop. |
|
Number of seconds the read replica is behind its primary (approximation). |
|
Indicates whether the I/O thread for reading the primary’s binary log is running. Possible values are Yes, No and Connecting. |
|
Indicates whether the I/O thread for reading the primary’s binary log is running. Possible values are Yes, No and Connecting, and the values are exposed through the ‘state’ field. |
|
Indicates whether the SQL thread for executing events in the relay log is running. |
|
Indicates whether the SQL thread for executing events in the relay log is running. Possible values are Yes / No, and the values are exposed through the ‘state’ field. |
|
Delta count of bytes sent by MySQL process. |
PostgreSQL databases¶
Metric type prefix: cloudsql.googleapis.com/database/postgresql/
Metric |
Description |
---|---|
|
Number of disk blocks read by this database. The source field distingushes actual reads from disk versus reads from buffer cache. |
|
Number of deadlocks detected for this database. |
|
Accumulated query execution time per user per database. This is the sum of cpu time, io wait time, lock wait time, process context switch, and scheduling for all the processes involved in the query execution. |
|
Accumulated IO time per user per database. |
|
Query latency distribution per user per database. |
|
Accumulated lock wait time per user per database. |
|
Total number of rows affected during query execution. |
|
Shared blocks (regular tables & indexed) accessed by statement execution. |
|
Accumulated execution times per user per database per query.This is the sum of cpu time, io wait time, lock wait time, process context switch, and scheduling for all the processes involved in the query execution. |
|
Accumulated IO time per user per database per query. |
|
Query latency distribution per user per database per query. |
|
Accumulated lock wait time per user per database per query. |
|
Total number of rows affected during query execution. |
|
Shared blocks (regular tables & indexed) accesssed by statement execution. |
|
Accumulated execution times per user per database per tag.This is the sum of cpu time, io wait time, lock wait time, process context switch, and scheduling for all the processes involved in the query execution. |
|
Accumulated IO write time per user per database per tag. |
|
Query latency distribution per user per database per tag. |
|
Accumulated lock wait time per user per database per tag. |
|
Total number of rows affected during query execution. |
|
Shared blocks (regular tables & indexed) accessed by statement execution. |
|
Number of connections to the Cloud SQL PostgreSQL instance. |
|
Number of connections to the Cloud SQL PostgreSQL instance, grouped by its state. |
|
Replication lag in bytes. Reported from the master per replica. |
|
Delta count of number of transactions. |
|
Delta count of transaction ID. |
|
Current utilization represented as a percentage of transaction IDs consumed by the Cloud SQL PostgreSQL instance. Values are typically numbers between 0.0 and 1.0. Charts display the values as a percentage between 0% and 100%. |
|
Number of tuples (rows) in the database. |
|
Number of tuples(rows) processed for a given database for operations like insert, update or delete. |
|
Age of the oldest transaction yet to be vacuumed in the Cloud SQL PostgreSQL instance, measured in number of transactions that have happened since the oldest transaction. |
SQLServer databases¶
Metric type prefix: cloudsql.googleapis.com/database/sqlserver
Metric |
Description |
---|---|
|
Tracks the size in bytes of stored SQLServer audit files on an instance. |
|
Counts total number of SQLServer audit file uploads to a GCS bucket and whether or not an upload was successful. |