describe_db_instance_performance
Retrieve performance metrics for an RDS instance, including CPU, memory, QPS, TPS, and session counts, to monitor and troubleshoot database performance.
Instructions
Queries the performance data of an instance using the RDS OpenAPI.
This method provides performance data collected from the RDS service, such as MemCpuUsage, QPSTPS, Sessions, ThreadStatus, MBPS, etc.
Args:
region_id: db instance region(e.g. cn-hangzhou)
db_instance_id: db instance id(e.g. rm-xxx)
db_type: the db instance database type(e.g. mysql,pgsql,sqlserver)
perf_keys: Performance Key (e.g. ["MemCpuUsage", "QPSTPS", "Sessions", "COMDML", "RowDML", "ThreadStatus", "MBPS", "DetailedSpaceUsage"])
start_time: start time(e.g. 2023-01-01 00:00)
end_time: end time(e.g. 2023-01-01 00:00)Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region_id | Yes | ||
| db_instance_id | Yes | ||
| db_type | Yes | ||
| perf_keys | Yes | ||
| start_time | Yes | ||
| end_time | Yes |