This page describes how to view information about a Cloud SQL instance.
View instance summary information
You can view summary information about your Cloud SQL instances in the Google Cloud console, or by using the gcloud CLI, or the API.
Console
-
In the Google Cloud console, go to the Cloud SQL Instances page.
To see the current instance state, hold the pointer over the status icon next to an instance name.
If the instance is in a
FAILED
orMAINTENANCE
state, then you can clone the instance by selecting a time from the past and restoring the instance to that time.- To open the Overview page of an instance, click the instance name.
To see connectivity information about the instance, including whether a private or public IP address is added to the instance, any authorized networks associated with the instance, and whether other Google Cloud services, such as BigQuery, can access data in Cloud SQL and make queries against this data over a private connection, click the Connections tab.
For more information about the Connections tab, including the ways that you can connect to your Cloud SQL instance and the networks that are authorized to connect to the instance, see About connection options.
gcloud
gcloud sql instances describe INSTANCE_NAME
REST v1
Before using any of the request data, make the following replacements:
- project-id: The project ID
- instance-id: The instance ID
HTTP method and URL:
GET https://sqladmin.googleapis.com/v1/projects/project-id/instances/instance-id
To send your request, expand one of these options:
You should receive a JSON response similar to the following:
{ "kind": "sql#instance", "state": "RUNNABLE", "databaseVersion": "POSTGRES_13" }
REST v1beta4
Before using any of the request data, make the following replacements:
- project-id: The project ID
- instance-id: The instance ID
HTTP method and URL:
GET https://sqladmin.googleapis.com/sql/v1beta4/projects/project-id/instances/instance-id
To send your request, expand one of these options:
You should receive a JSON response similar to the following:
{ "kind": "sql#instance", "state": "RUNNABLE", "databaseVersion": "POSTGRES_13" }
You might see some banners at the top suggesting actions that you might want to take.
Metrics
This section provides usage charts of key instance metrics that you can use to monitor your instances. When working with metric data, keep the following facts in mind:
- A data point for a metric is an aggregate over all databases hosted by the instance.
- Data is reported in local time.
- Rendered charts do not refresh automatically; to see new data, you must refresh the page.
- There is a delay of a few minutes between when metric data is recorded and the time it is displayed in the usage charts.
For more information about the metrics shown in the chart, see Monitoring Cloud SQL instances.
For a complete list of Cloud SQL metrics provided by Cloud Monitoring, see the Cloud SQL metrics list.
For more information about using Cloud Monitoring with Google Cloud, see the Cloud Monitoring documentation.
Connect to this instance
In the Connect to this instance section, you can find your instance's IP addresses, VPC network, and connection name.
To open a terminal and connect to your instance, click Connect using Cloud Shell.
To open a related tutorial in the right pane, click Connect from a Compute Engine VM instance.
To go to Connection options, click See all connection methods.
For more information about connecting to an instance, see Connecting overview.
Service account
This section shows the instance's service account email address.
For more information, see the IAM service accounts documentation.
Configuration
This section shows current configuration settings of the instance.
To change configuration settings, click Edit configuration.
For more information about editing the instance configuration, see editing an instance.
Operations and logs
This section lists recent instance operations, such as creating backups.
To see recent operations, click View all operations.
To see logging information, click View PostgreSQL Error Logs.
For more information about the Operations and the Logs Explorer pages, see Cloud SQL logging.
For generic information about logging, see Viewing logs and Exporting logs.
Maintenance
This section shows the current maintenance update settings and schedule.
To change preferences, click Edit maintenance preferences.
To change notification settings, click Edit notification preferences.
For more information about maintenance in Cloud SQL, see Maintenance overview.
What's next
- Learn more about Cloud Monitoring metrics for Cloud SQL.
- Learn more about instance settings.
- Learn more about editing an instance.