[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],null,["# Monitor Cloud SQL instances\n\n\u003cbr /\u003e\n\n[MySQL](/sql/docs/mysql/monitor-instance \"View this page for the MySQL database engine\") \\| [PostgreSQL](/sql/docs/postgres/monitor-instance \"View this page for the PostgreSQL database engine\") \\| SQL Server\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThis page describes how you can monitor Cloud SQL instances in the following ways:\n\n- [Monitor an instance by using the Cloud Monitoring dashboard](#cloud-monitoring)\n- [View metrics on the Cloud SQL instance Overview page](#monitoring-overview)\n- [Compare metrics from multiple instances](#monitoring-multiple)\n\nMonitor an instance by using the Cloud Monitoring dashboard\n-----------------------------------------------------------\n\nCloud Monitoring offers predefined dashboards for several Google Cloud products,\nincluding a default Cloud SQL [monitoring dashboard](https://console.cloud.google.com/monitoring/dashboards/resourceList/cloudsql_database). You can\nuse this dashboard to monitor the general health of your primary and replica instances.\nYou can also create your own [custom dashboards](/monitoring/charts/dashboards)\nto display data that's of interest to you.\n\n### Set up alerts\n\nYou can use Cloud Monitoring to [set up alerts](/monitoring/alerts/using-alerting-ui#viewing_policies)\nfor a project or a specified instance.\n\nFor example, you can set up an alert for a message to be sent to specific email\nIDs when the **Memory usage** metric for a Cloud SQL instance exceeds\nthe threshold of 80%.\n\nView metrics on the Cloud SQL instance Overview page\n----------------------------------------------------\n\nView some of the key metrics for a Cloud SQL instance on its Overview page as follows:\n\n1. In the Google Cloud console, go to the **Cloud SQL Instances** page.\n\n [Go to Cloud SQL Instances](https://console.cloud.google.com/sql)\n2. To open the **Overview** page of an instance, click the instance name.\n3. The default metrics chart appears at the top of the page.\n4.\n Optional: Select another metric from the **Chart** drop-down list.\n\n\n The chart shows the data for the selected metric.\n\nThe list includes the following options:\n- CPU utilization\n- Storage usage\n- Memory usage\n- Read/write operations\n- Ingress/Egress bytes\n- Replication lag (for read replicas)\n\n### Available metrics\n\n- 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.\n\nCompare metrics from multiple instances\n---------------------------------------\n\n 1. In the Google Cloud console, go to the **Cloud SQL Instances** page.\n\n [Go to Cloud SQL Instances](https://console.cloud.google.com/sql)\n 2. From the Cloud SQL **Instances** page, choose up to five instances to compare by selecting the checkbox to the left of the instance name.\n 3. On the **Info Panel** on the right, select the **Monitoring** tab.\n 4.\n From the metrics drop-down, select the metric to use for comparing instances.\n\n You can see the data for a specific moment by holding the pointer over the\n chart.\n\nWhat's next\n-----------\n\n - [Instance settings](/sql/docs/sqlserver/instance-settings)\n - [Cloud SQL metrics](/sql/docs/sqlserver/admin-api/metrics)"]]