Other Articles

Cloud SQL – Monitor CPU Utilization

This check ensures that CPU monitoring is enabled for Cloud SQL instances. Monitoring CPU utilization helps identify performance bottlenecks, capacity issues, and abnormal usage patterns that may impact database availability.

Check Details

  • Resource: Cloud SQL
  • Check: Enable CPU monitoring
  • Risk: Without CPU monitoring, performance issues and resource exhaustion may go unnoticed, potentially leading to degraded performance, outages, or delayed incident response.

Remediation via Google Cloud Console

  1. Log in to the Google Cloud Console and navigate to Cloud SQL. Cloud Sql Instance
  2. Click on the affected Cloud SQL instance.
  3. Open the Monitoring tab for the instance.
  4. Verify that CPU utilization metrics are visible and actively being collected. Cloud SQL CPU Monitoring
  5. Ensure that Cloud Monitoring is enabled for the project and instance.

Remediation via Google Cloud CLI

  1. Open the Google Cloud Console and launch Cloud Shell. GCP Cloud Shell
  2. Verify that Cloud Monitoring is enabled for the project:
    
    
    gcloud services list --enabled | grep monitoring.googleapis.com
    

Cloud SQL automatically exports CPU utilization metrics to Cloud Monitoring when monitoring is enabled for the project. No instance-level configuration is required beyond ensuring Monitoring APIs are active.

Default Value

By default, CPU metrics are available only when Cloud Monitoring is enabled for the project. If monitoring services are disabled, CPU utilization data will not be collected or visible.