db_top_queries
Diagnose database performance issues by listing slow or heavy queries from MySQL digest summaries or PostgreSQL pg_stat_statements.
Instructions
Show the slowest / heaviest queries for an instance's DB. MySQL: performance_schema digest summary. Postgres: pg_stat_statements (extension must be enabled). For the shared-RDS noisy-neighbour case. Requires a db_profile; password from your secret store. Read-only query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Website/app to target when the instance hosts several DBs; matched loosely against stored site labels. Omit for a single DB. | |
| limit | No | How many queries to return (1–100, default 15). | |
| instance_id | Yes | Instance ID or name. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'. |