This page describes how you can monitor Cloud SQL instances in the following ways:
- Monitor an instance by using the Cloud Monitoring dashboard
- View metrics on the Cloud SQL instance Overview page
- Compare metrics from multiple instances
Use the Cloud SQL System Insights dashboard
The Cloud SQL System Insights dashboard helps you detect and analyze system performance problems.
For more information, see Use System Insights to improve system performance.
Monitor an instance by using the Cloud Monitoring dashboard
Cloud Monitoring offers predefined dashboards for several Google Cloud products, including a default Cloud SQL monitoring dashboard. You can use this dashboard to monitor the general health of your primary and replica instances. You can also create your own custom dashboards to display data that's of interest to you.
Set up alerts
You can use Cloud Monitoring to set up alerts for a project or a specified instance.
For example, you can set up an alert for a message to be sent to specific email IDs when the Memory usage metric for a Cloud SQL instance exceeds the threshold of 80%.
View metrics on the Cloud SQL instance Overview page
View some of the key metrics for a Cloud SQL instance on its Overview page as follows:
-
In the Google Cloud console, go to the Cloud SQL Instances page.
- To open the Overview page of an instance, click the instance name.
Optional: Select another metric from the Chart drop-down list.
The chart shows the data for the selected metric.
The default metrics chart appears at the top of the page.
Available metrics
The usage charts help you respond proactively as your application needs change. From these metrics, you can gain insights into issues of throughput and latency as well as instance usage costs.
Compare metrics from multiple instances
-
In the Google Cloud console, go to the Cloud SQL Instances page.
- From the Cloud SQL Instances page, choose up to five instances to compare by selecting the checkbox to the left of the instance name.
- On the Info Panel on the right, select the Monitoring tab.
From the metrics drop-down, select the metric to use for comparing instances.
You can see the data for a specific moment by holding the pointer over the chart.
