Lesson 1 of 5 Amazon RDS and Amazon Aurora

Monitoring RDS and Aurora Performance

This lesson explains how operators monitor Amazon RDS and Amazon Aurora at three levels: CloudWatch metrics, operating system metrics and database load.

Learning outcomes

After completing this lesson, you will be able to:

  • Interpret RDS CloudWatch metrics.
  • Use Enhanced Monitoring for operating system metrics.
  • Use Performance Insights and Database Insights to find load.

CloudWatch metrics

RDS publishes instance metrics to CloudWatch every minute. The most important are CPUUtilization; FreeableMemory and SwapUsage (memory pressure); FreeStorageSpace; ReadIOPS, WriteIOPS, ReadLatency, WriteLatency and DiskQueueDepth (storage performance); DatabaseConnections; ReplicaLag for read replicas; and BurstBalance for gp2 storage. Aurora adds cluster-level metrics such as AuroraReplicaLag, BufferCacheHitRatio, Deadlocks and ServerlessDatabaseCapacity. Alarms on low FreeStorageSpace, high DatabaseConnections and rising ReplicaLag catch most operational problems early. RDS event subscriptions send events such as failover, low storage and maintenance to SNS.

Enhanced Monitoring

CloudWatch's CPUUtilization comes from the hypervisor. Enhanced Monitoring runs an agent on the database host and collects operating system metrics at intervals down to 1 second: CPU broken into user, system and wait, memory, file system, disk I/O and a process list that shows which processes, including the database engine's threads, consume resources. Data is stored in the RDSOSMetrics CloudWatch Logs group, and enabling it requires an IAM role that lets RDS publish there. Use it to tell whether high CPU comes from the engine or from other processes, or to see I/O wait.

Performance Insights and CloudWatch Database Insights

Performance Insights measures database load as average active sessions (AAS) and breaks it down by wait events (for example CPU, I/O, locks), top SQL, hosts, users and databases. When AAS exceeds the number of vCPUs (the max vCPU line), sessions are waiting, and the wait event shows why: an I/O wait points to storage or missing indexes, a lock wait to contention, CPU to inefficient queries or an undersized instance. Proactive recommendations highlight emerging issues such as excessive connections, high CPU from specific queries or idle-in-transaction sessions, with suggested actions; these recommendations were provided through Amazon DevOps Guru for RDS, which closes to new customers on 29 October 2026, so new deployments rely on Database Insights and CloudWatch anomaly detection instead.

In 2026 AWS retired the separate Performance Insights console experience in favour of CloudWatch Database Insights. The Performance Insights API continues to work. Database Insights has a Standard mode, which provides database load analysis comparable to Performance Insights, and an Advanced mode, which adds fleet-wide monitoring dashboards, lock analysis, SQL execution plans and on-demand performance analysis that compares a problem period with a baseline. The exam guide still uses the name Performance Insights, so expect either name in questions.

The following diagram shows database load stacked by wait event against the max vCPU line.

Reading Performance Insights. Database load is measured in average active sessions, stacked by wait event. While load stays under the max vCPU line, sessions are not waiting for CPU. Here the load rises above the line during the middle period and most of it is I/O wait, which points to storage throughput or missing indexes rather than CPU.
The values are illustrative. The colour that dominates when load crosses the line names the bottleneck.
Sort into groups

Which monitoring tool?

Exam skills 1.3.5

Choose the RDS monitoring feature that answers each question.

Log in to try this activity Interactive activities are free with an account.
Worked example

Diagnosing a slow database

Application response times on an RDS for PostgreSQL db.r6g.xlarge (4 vCPUs) triple each morning. CloudWatch shows CPU at 55%, which does not look critical. Database Insights shows database load peaking at 11 AAS, well above the 4 vCPU line, dominated by the wait event IO:DataFileRead and by one SQL statement that scans the orders table. ReadIOPS sits at the gp3 volume's 3,000 IOPS baseline. Two fixes follow: an index for the query's filter column, which removes most reads, and more provisioned IOPS for headroom. The CPU metric alone would have pointed to the wrong cause.

Check yourself

Which feature gives operating system metrics and a process list for an RDS instance?

Show answer

Enhanced Monitoring, at intervals down to 1 second.

Exam Tips

Remember for the exam

  • Alarm on FreeStorageSpace, DatabaseConnections, ReplicaLag and latency metrics.
  • Enhanced Monitoring gives OS metrics and a process list at up to 1-second granularity.
  • Database load (AAS) above the vCPU count means sessions are waiting; the wait event explains why.
  • Performance Insights moved into CloudWatch Database Insights; Advanced mode adds execution plans and fleet views.
  • RDS event subscriptions notify SNS about failovers, storage and maintenance.