Performance parameters
Use the DescribeDBInstancePerformance operation to query instance performance data. When you call this operation, specify the time range (StartTime and EndTime), the instance (DBInstanceId), and the performance metric (Key). The supported values for Key and the structure of the return values vary by database type:
MySQL and MariaDB
RDS for MySQL and RDS for MariaDB share the same performance parameter names.
| Description |
MySQL_NetworkTraffic | The average rate of inbound and outbound traffic for the instance. Unit: KB/s. |
MySQL_QPSTPS | The average number of SQL statements executed and transactions per second. Unit: count/s. |
MySQL_Sessions | The number of active and total connections. Unit: count. |
MySQL_InnoDBBufferRatio | The read hit rate, utilization, and dirty block percentage in the InnoDB buffer pool. Unit: %. |
MySQL_InnoDBDataReadWriten | The average amount of data read from and written to InnoDB per second. Unit: KB. |
MySQL_InnoDBLogRequests | The average number of reads from and writes to the InnoDB buffer pool per second. Unit: count/s. |
MySQL_InnoDBLogWrites | The average number of log write requests, physical writes to the log file, and completed |
MySQL_TempDiskTableCreates | The number of on-disk temporary tables created during statement execution. Unit: count. |
MySQL_MyISAMKeyBufferRatio | The average utilization, read hit rate, and write hit rate of the MyISAM key buffer. Unit: %. |
MySQL_MyISAMKeyReadWrites | For MyISAM, the average number of buffer reads, buffer writes, disk reads, and disk writes per second. Unit: count/s. |
MySQL_COMDML | The average number of executions per second for the following statements: DELETE, INSERT, INSERT_SELECT, REPLACE, REPLACE_SELECT, SELECT, and UPDATE. Unit: count/s. |
MySQL_RowDML | The average number of rows read, updated, deleted, and inserted per second in InnoDB tables, and the average number of physical writes to the log file per second. Unit: rows/s or count/s. |
MySQL_MemCpuUsage (For non-Serverless instances) | The CPU and memory utilization of a non-Serverless instance, expressed as a percentage of total operating system resources. Unit: %. |
MySQL_RCU_MemCpuUsage (For Serverless instances) | The CPU and memory utilization of a Serverless instance, expressed as a percentage of total operating system resources. Unit: %. |
MySQL_IOPS | The IOPS of the instance. Unit: count/s. |
MySQL_DetailedSpaceUsage | The total, data, log, temporary, and system space usage of the instance. Unit: MB. |
slavestat | The replication delay of the read-only instance. Unit: seconds. |
MySQL_ThreadStatus | The number of active threads and connected threads. Unit: count. |
MySQL_ReplicationDelay | The replication delay of the replica instance. Unit: seconds. |
MySQL_ReplicationThread | The status of the I/O replication thread and the SQL replication thread. A status of 1 indicates normal, while 0 indicates a missing thread. |
MySQL_ROW_LOCK | The maximum wait time (ms), average wait time (ms), and number of waits (count) for a row lock. |
MySQL_SelectScan | The number of full table scans performed by the instance. Unit: count. |
MySQL_MBPS | The read and write throughput of the instance. Unit: B/s. |
SQL Server
Multiple metrics for a single key are separated by &.
Basic metrics
Standard monitoring chart name | Standard monitoring metric name | Description | Unit | OpenAPI Key | OpenAPI returned metric name |
Instance Storage |
| Total space used by the instance. | MB |
|
|
| Log space used. | MB |
| ||
| Data space used. | MB |
| ||
| System space used. | MB |
| ||
| Temporary space used. | MB |
| ||
| Disk space used by Extended Event log files. | MB |
| ||
| Disk space used to store SQL Server trace files, such as SQL Profiler trace files. | MB |
| ||
| Space used by dump files that are generated when the SQL Server kernel encounters an exception. | MB |
| ||
| Disk space used to store the SQL Server system database master. | MB |
| ||
| Disk space used to store the model database. The model database is the template for each new database. | MB |
| ||
| Disk space used to store the msdb database. The msdb database manages SQL Server Agent jobs and backup history. | MB |
| ||
| Disk space used by error log files. You can clear the error logs of an instance from the console or by calling an API operation. | MB |
| ||
Instance Disk Usage |
| Space usage. | % |
|
|
BufferHit |
| Cache hit ratio. | % |
|
|
| Percentage of pages found in the buffer cache without a read from disk. | % |
| ||
CPU/Memory Utilization |
| Instance memory usage. | % |
|
|
| Instance CPU usage as a percentage of total operating system CPU. | % |
|
| |
Network Traffic |
| Average number of bytes received from all clients per second. | KB |
|
|
| Average number of bytes sent to all clients per second. | KB |
| ||
Abnormal Items |
| Number of databases with an abnormal mirroring configuration or a failed mirroring synchronization. | Count |
|
|
Connections |
| Number of active threads. | Count |
|
|
Transactions |
| Average transactions per second. | Count/S |
|
|
| Average write transactions per second. | Count/S |
| ||
AlwaysOn Availability Group Performance |
| SQL Server AlwaysOn replication lag. | S |
|
|
| Size of the log queue waiting to be redone on the replica, in KB. | KB |
| ||
| Size of the log queue on the primary replica waiting to be sent to the replica, in KB. | KB |
| ||
| Number of unhealthy databases in the availability group. | Count |
| ||
| Number of databases that are not in the availability group. | Count |
| ||
SQL Compilation Rate |
| SQL compilations per second. | Count/S |
|
|
| Statement recompilations per second. | Count/S |
| ||
IOPS Utilization |
| Actual IOPS usage. | % |
|
|
| IOPS usage when I/O burst is disabled. | % |
| ||
| Percentage of IOPS improvement after I/O burst is enabled. | % |
| ||
Lock Timeouts |
| Lock requests that timed out per second, including NOWAIT lock requests. | Count/S |
|
|
Mirroring Synchronization Performance (high-availability series only) |
| Number of log bytes on the primary replica waiting to be sent to the replica. | KB |
|
|
| Number of log bytes waiting to be redone on the replica. | KB |
| ||
Page Life Expectancy |
| Average time a cached data page stays in memory. | S |
|
|
Blocking |
| Length of the worker threads wait queue. | Count |
|
|
| Number of uncommitted transactions. | Count |
| ||
| Duration of the longest-running transaction. | S |
| ||
| Number of blocked processes. | Count |
| ||
Full Table Scan Rate |
| Average full table scans per second. | Count/S |
|
|
Throughput Utilization |
| Disk I/O throughput usage when I/O burst is disabled. | % |
|
|
| Actual disk I/O throughput usage. | % |
| ||
| Percentage of disk I/O throughput improvement after I/O burst is enabled. | % |
| ||
IOPS |
| Read I/O requests per second. | Count/S |
|
|
| Total I/O requests per second. | Count/S |
| ||
| Write I/O requests per second. | Count/S |
| ||
| Upper IOPS limit on the computing side. | Count/S |
| ||
| Upper IOPS limit on the storage side. | Count/S |
| ||
| Upper IOPS limit when I/O burst is disabled. | Count/S |
| ||
| Upper IOPS limit. | Count/S |
| ||
QPS |
| Average number of SQL statement executions per second. | Count/S |
|
|
Checkpoint Pages Written |
| Writes to disk per second. | Count/S |
|
|
| Pages written to disk by checkpoints per second. | Count/S |
| ||
Deadlocks |
| Deadlocks per second. | Count/S |
|
|
Page Performance |
| Data pages read from disk per second (physical I/O). | Count/S |
|
|
| Data pages written to disk per second (physical I/O). | Count/S |
| ||
Throughput |
| Total disk I/O throughput per second. | MB/S |
|
|
| Disk read I/O throughput per second. | MB/S |
| ||
| Disk write I/O throughput per second. | MB/S |
| ||
| Upper disk I/O throughput limit per second on the computing side. | MB/S |
| ||
| Upper disk I/O throughput limit per second on the storage side. | MB/S |
| ||
| Upper disk I/O throughput limit per second when I/O burst is disabled. | MB/S |
| ||
| Upper disk I/O throughput limit per second. | MB/S |
| ||
Logons |
| Logons per second. | Count/S |
|
|
| Logouts per second. | Count/S |
| ||
Serverless RCU (serverless instances only) |
| RDS Capacity Unit. | Count |
|
|
Advanced metrics
Standard monitoring chart name | Standard monitoring metric name | Description | Unit | OpenAPI Key | OpenAPI returned metric name |
Index Usage |
| Index searches per second. | Count/S |
|
|
| Forwarded records accessed per second. | Count/S |
| ||
Connections |
| Number of active temporary tables. | Count |
|
|
| Number of active transactions. | Count |
| ||
| Number of active cursors. | Count |
| ||
| Logons initiated from the connection pool per second. | Count/S |
| ||
| Total number of connections. | Count |
| ||
Cache |
| Total number of objects in the cache. | Count |
|
|
| Number of cache objects currently in use. | Count |
| ||
| Number of pages used by the cache. | Count |
| ||
Advanced Memory Usage |
| Memory used by the SQL compiled plan cache, in KB. | KB |
|
|
| Memory used by the physical driver cache, in KB. | KB |
| ||
| Memory used by the object compiled plan cache, in KB. | KB |
| ||
| Memory allocated to operating system nodes, in KB. | KB |
| ||
| Memory used by the common language runtime (CLR), in KB. | KB |
| ||
| Memory used by the SQL storage engine, in KB. | KB |
| ||
| Memory used by the user schema manager, in KB. | KB |
| ||
| Memory used by the operating system memory manager, in KB. | KB |
| ||
| Virtual memory used by the plan cache for SQL plans. | KB |
| ||
| Virtual memory used by the temporary memory cache for algebrizer trees. | KB |
| ||
| Virtual memory used by the plan cache for object plans. | KB |
| ||
| Virtual memory used by SOSNODE, a component of SQLOS. | KB |
| ||
| Virtual memory used by SQLCLR. | KB |
| ||
| Virtual memory used by storage engine components. | KB |
| ||
| Virtual memory used by different types of metadata for database objects. | KB |
| ||
| Virtual memory used by SOSMEMMANAGER, a component of SQLOS. | KB |
| ||
Backup Performance |
| Bytes processed per second by backup or restore operations (throughput). | Count/S |
|
|
Memory Usage |
| Memory used by lock structures, in KB. | KB |
|
|
| Memory used by connections, in KB. | KB |
| ||
| Memory used by the database buffer pool, in KB. | KB |
| ||
| Available memory, in KB. | KB |
| ||
| Memory used by the query optimizer, in KB. | KB |
| ||
| Total memory currently used by SQL Server, in KB. | KB |
| ||
| Memory used by the SQL plan cache, in KB. | KB |
| ||
| Memory used for other purposes, in KB. | KB |
| ||
AlwaysOn Availability Group Performance |
| Bytes received from the replica per second. | B/S |
|
|
| Timestamp at which the replica finished the redo operation. | S |
| ||
| Bytes sent to the replica per second. | B/S |
| ||
| Flow control duration per second, in milliseconds. | MS/S |
| ||
| Flow control events triggered per second. | Count/S |
| ||
SQL Compilation Rate |
| Safe auto-parameterization attempts per second. | Count/S |
|
|
| Failed auto-parameterization attempts per second. | Count/S |
| ||
| Successful forced parameterizations per second. | Count/S |
| ||
| Unsafe auto-parameterization attempts per second. | Count/S |
| ||
| Auto-parameterization attempts per second. | Count/S |
| ||
Mirroring Synchronization Performance (high-availability series only) |
| Number of log bytes that the replica still needs to redo. | B |
|
|
| Number of log bytes redone by the replica per second. | B/S |
| ||
Log Growth |
| Number of transaction log shrinks. | Count |
|
|
| Number of transaction log truncations. | Count |
| ||
| Number of automatic transaction log growths. | Count |
| ||
Version Store Rate |
| Size of the row version store cleaned up per second, in KB. | KB/S |
|
|
| Size of the row version store generated per second, in KB. | KB/S |
| ||
Log Performance |
| Log bytes written to disk per second (physical transaction log writes). | B/S |
|
|
| Log bytes received per second (transaction log generation rate). | B/S |
| ||
| Reads from the log cache per second, which do not require a read from disk. | Count/S |
| ||
| Number of waits for the log buffer. A high value indicates heavy log buffer contention. Increase the log buffer size or optimize transactions. | B |
| ||
| Log flushes to disk per second. A high value indicates frequent transactions. Consider optimizing batch operations. | Count/S |
| ||
| Log buffer requests per second. Use this metric to monitor log buffer pressure. | Count/S |
| ||
Lock Wait Times |
| Total lock requests received by SQL Server per second. | Count/S |
|
|
| Average lock wait time. | MS |
| ||
| Lock requests per second for which the caller waited. | Count/S |
| ||
| Times per second that locks on a table were escalated to the TABLE or HoBT granularity. | Count/S |
| ||
| Average wait time for latch requests. | MS |
| ||
| Average wait time for lock requests. | MS |
| ||
| Total lock wait time in the last second. | MS |
| ||
| Latch requests not granted immediately per second. | Count/S |
| ||
| Statistics about processes waiting for a lock. | Count |
| ||
Page Performance |
| Number of buffer pool page lookups per second. | Count/S |
|
|
| Data pages compressed per second. | Count/S |
| ||
| Number of waits to acquire a page I/O latch. | Count |
| ||
| Page splits per second. | Count/S |
| ||
| Pages read ahead per second. | Count/S |
| ||
| Pages written to disk per second by the background writer process. | Count/S |
| ||
| Total number of waits to acquire a page latch. | Count |
|
PostgreSQL
ApsaraDB RDS for PostgreSQL offers enhanced monitoring to provide more granular metrics in the console. This table maps the values of the Key parameter for the DescribeDBInstancePerformance operation to their corresponding metrics in enhanced monitoring.
| Metric and description | Enhanced monitoring metric |
MemoryUsage | Memory usage. Unit: %. | os.mem_usage.total.avg |
CpuUsage | CPU utilization. Unit: %. | os.cpu_usage.total.avg |
PgSQL_SpaceUsage | Instance space usage. Unit: byte. | os.fs_size.wal_dir.avg + os.fs_size.base_dir.avg (Unit: MB) |
PgSQL_IOPS | IOPS (I/O operations per second). Unit: count/s. | (os.iops.data.avg+os.iops.wal.avg) / os.iops.total.avg * 100 |
PgSQL_Session | Total current connections. Unit: count. | db.connections.total.avg |
PolarDBConnections |
|
|
PolarDBRowDML |
|
|
PolarDBQPSTPS |
|
|
PolarDBSwellTime | Minimum age of garbage, in seconds, before it can be collected (swell point). | db.swell.swell_time.avg |
PolarDBCPU | CPU utilization. Unit: %. |
|
PolarDBMemory | Memory usage. Unit: %. | os.mem_usage.total.avg |
PolarDBReplication |
| / |
PolarDBLongSQL |
|
|
PolarDBLongIdleTransaction |
|
|
PolarDBLongTransaction |
|
|
PolarDBLongTwoPCTransaction |
|
|
PolarDBLocalIOSTAT |
|
|
PolarDBLocalDiskUsage |
|
|