Skip to main content

GCP Cloud SQL

Overview

The GCP Cloud SQL integration with ObserveOps (formerly known as AIOps) collects operational telemetry from Google Cloud SQL instances. It monitors instance state, CPU and memory utilization, disk I/O, network activity, replication lag, and database-engine-specific metrics across MySQL, PostgreSQL, and SQL Server.

These metrics help administrators track query performance, monitor connection health, identify replication issues, and maintain visibility across all Cloud SQL database engines.

Prerequisites

  • The GCP project has Cloud SQL instances running.
  • The service account used for integration has the Cloud SQL Viewer and Monitoring Viewer roles.
  • Required GCP API endpoints are reachable from ObserveOps.
  • The GCP project is added in discovery with correct credentials and region configuration.

List of Supported KPIs

MySQL

MetricDescriptionType
gcp.mysqlIdentifier of the Cloud SQL MySQL instance.String
gcp.mysql.stateCurrent operational state of the MySQL instance.String
gcp.mysql.cpu.percentCPU utilization percentage of the MySQL instance.Percent
gcp.mysql.memory.used.percentMemory utilization percentage of the MySQL instance.Percent
gcp.mysql.memory.bytesTotal memory capacity of the MySQL instance.Bytes
gcp.mysql.memory.used.bytesAmount of memory currently in use on the MySQL instance.Bytes
gcp.mysql.network.sent.bytesTotal bytes sent over the network from the MySQL instance.Bytes
gcp.mysql.network.received.bytesTotal bytes received over the network by the MySQL instance.Bytes
gcp.mysql.disk.used.bytesTotal disk storage used by the MySQL instance.Bytes
gcp.mysql.disk.quota.bytesDisk storage quota allocated to the MySQL instance.Bytes
gcp.mysql.disk.read.iopsRead I/O operations per second on the MySQL instance disk.Count/sec
gcp.mysql.disk.write.iopsWrite I/O operations per second on the MySQL instance disk.Count/sec
gcp.mysql.replication.lag.secondsReplication lag in seconds for the MySQL instance replica.Seconds
gcp.mysql.connectionsNumber of active connections to the MySQL instance.Count
gcp.mysql.queriesTotal number of queries executed on the MySQL instance.Count
gcp.mysql.questionsTotal number of client statements executed on the MySQL instance.Count
gcp.mysql.innodb.data.fsyncsNumber of InnoDB fsync operations performed.Count
gcp.mysql.innodb.os.log.fsyncsNumber of InnoDB OS log fsync operations performed.Count
gcp.mysql.innodb.pages.readNumber of InnoDB pages read from disk.Count
gcp.mysql.innodb.pages.writtenNumber of InnoDB pages written to disk.Count
gcp.mysql.received.bytesTotal bytes received by the MySQL server.Bytes
gcp.mysql.sent.bytesTotal bytes sent by the MySQL server.Bytes

PostgreSQL

MetricDescriptionType
gcp.postgresqlIdentifier of the Cloud SQL PostgreSQL instance.String
gcp.postgresql.stateCurrent operational state of the PostgreSQL instance.String
gcp.postgresql.cpu.percentCPU utilization percentage of the PostgreSQL instance.Percent
gcp.postgresql.memory.used.percentMemory utilization percentage of the PostgreSQL instance.Percent
gcp.postgresql.memory.bytesTotal memory capacity of the PostgreSQL instance.Bytes
gcp.postgresql.memory.used.bytesAmount of memory currently in use on the PostgreSQL instance.Bytes
gcp.postgresql.network.sent.bytesTotal bytes sent over the network from the PostgreSQL instance.Bytes
gcp.postgresql.network.received.bytesTotal bytes received over the network by the PostgreSQL instance.Bytes
gcp.postgresql.disk.used.bytesTotal disk storage used by the PostgreSQL instance.Bytes
gcp.postgresql.disk.quota.bytesDisk storage quota allocated to the PostgreSQL instance.Bytes
gcp.postgresql.disk.read.iopsRead I/O operations per second on the PostgreSQL instance disk.Count/sec
gcp.postgresql.disk.write.iopsWrite I/O operations per second on the PostgreSQL instance disk.Count/sec
gcp.postgresql.replication.lag.secondsReplication lag in seconds for the PostgreSQL instance replica.Seconds
gcp.postgresql.connectionsNumber of active connections to the PostgreSQL instance.Count
gcp.postgresql.num.backendsNumber of active backend processes on the PostgreSQL instance.Count
gcp.postgresql.deadlocksTotal number of deadlocks detected on the PostgreSQL instance.Count
gcp.postgresql.blocks.readTotal disk blocks read by the PostgreSQL instance.Count
gcp.postgresql.blocks.hitTotal buffer hits on the PostgreSQL instance.Count
gcp.postgresql.temp.bytesTotal bytes written to temporary files by the PostgreSQL instance.Bytes
gcp.postgresql.temp.filesTotal number of temporary files created by the PostgreSQL instance.Count
gcp.postgresql.tup.fetchedTotal number of rows fetched by queries on the PostgreSQL instance.Count
gcp.postgresql.tup.returnedTotal number of rows returned by queries on the PostgreSQL instance.Count
gcp.postgresql.tup.insertedTotal number of rows inserted on the PostgreSQL instance.Count
gcp.postgresql.tup.updatedTotal number of rows updated on the PostgreSQL instance.Count
gcp.postgresql.tup.deletedTotal number of rows deleted on the PostgreSQL instance.Count

SQL Server

MetricDescriptionType
gcp.sql.serverIdentifier of the Cloud SQL SQL Server instance.String
gcp.sql.server.stateCurrent operational state of the SQL Server instance.String
gcp.sql.server.cpu.percentCPU utilization percentage of the SQL Server instance.Percent
gcp.sql.server.memory.used.percentMemory utilization percentage of the SQL Server instance.Percent
gcp.sql.server.memory.bytesTotal memory capacity of the SQL Server instance.Bytes
gcp.sql.server.memory.used.bytesAmount of memory currently in use on the SQL Server instance.Bytes
gcp.sql.server.network.sent.bytesTotal bytes sent over the network from the SQL Server instance.Bytes
gcp.sql.server.network.received.bytesTotal bytes received over the network by the SQL Server instance.Bytes
gcp.sql.server.disk.used.bytesTotal disk storage used by the SQL Server instance.Bytes
gcp.sql.server.disk.quota.bytesDisk storage quota allocated to the SQL Server instance.Bytes
gcp.sql.server.disk.read.iopsRead I/O operations per second on the SQL Server instance disk.Count/sec
gcp.sql.server.disk.write.iopsWrite I/O operations per second on the SQL Server instance disk.Count/sec
gcp.sql.server.replication.lag.secondsReplication lag in seconds for the SQL Server instance replica.Seconds
gcp.sql.server.connectionsNumber of active connections to the SQL Server instance.Count
gcp.sql.server.user.connectionsNumber of active user connections to the SQL Server instance.Count
gcp.sql.server.transactions.per.secondNumber of transactions executed per second on the SQL Server instance.Count/sec
gcp.sql.server.lock.waits.per.secondNumber of lock waits per second on the SQL Server instance.Count/sec
gcp.sql.server.deadlocks.per.secondNumber of deadlocks per second on the SQL Server instance.Count/sec
gcp.sql.server.page.reads.per.secondNumber of page reads per second on the SQL Server instance.Count/sec
gcp.sql.server.page.writes.per.secondNumber of page writes per second on the SQL Server instance.Count/sec
gcp.sql.server.batch.requests.per.secondNumber of batch requests received per second by the SQL Server instance.Count/sec