What problem does it solve?
Manually auditing Cloud SQL for PostgreSQL health, identifying performance bottlenecks like storage bloat and invalid indexes, and troubleshooting slow queries or blocking locks is time-consuming and requires deep expertise in both PostgreSQL and Google Cloud Monitoring. This Skill eliminates that manual effort by providing automated tools to gather insights and diagnose issues using natural language.
Core Features & Use Cases
- Performance Metrics Analysis: Fetch query-level and system-level Cloud Monitoring time series data to identify high latency, high CPU usage, connection bottlenecks, and I/O issues.
- Query Tuning: Generate PostgreSQL EXPLAIN plans for SQL statements to inspect optimizer estimates and identify opportunities to add indexes or rewrite queries for better performance.
- Real-Time Workload Monitoring: List active running queries, long-running transactions, and held locks to diagnose concurrency issues and blocking in production environments.
- Use Case: A database administrator can use this Skill to quickly identify the top 5 slowest queries consuming the most execution time, generate their EXPLAIN plans, and check for invalid indexes or storage bloat causing degraded performance.
Quick Start
Ask the AI to list the top 5 longest-running active queries on your Cloud SQL PostgreSQL instance to identify potential performance blockers immediately.