RDS Performance Monitoring Tools: Which to Use When
Amazon RDS monitoring tools: CloudWatch metrics, Enhanced Monitoring, Database Insights, logs and events, plus the metrics and alarms to set first.
Amazon RDS gives you five monitoring tools, and each answers a different question. CloudWatch metrics show resource health every minute. Enhanced Monitoring shows OS processes from an agent inside the instance. CloudWatch Database Insights shows which SQL and waits create load. Database logs and RDS events explain errors and changes.
Most guides list these tools one after another. This one is organised around the questions you ask when a database slows down, so you know which screen to open first. It is part of our monitoring cluster; for the wider tool picture see our guide to observability tools for DevOps monitoring.
Key takeaways
- CloudWatch metrics in the
AWS/RDSnamespace are on by default and cover CPU, memory, storage, IOPS, disk latency, connections and replica lag. - CloudWatch measures CPU from the hypervisor. Enhanced Monitoring measures from an agent on the instance, at 1, 5, 10, 15, 30 or 60 second granularity.
- Enhanced Monitoring data lands in the
RDSOSMetricslog group in CloudWatch Logs and is kept for 30 days by default. - AWS now documents query-level load analysis (the feature people know as Performance Insights) under CloudWatch Database Insights. Default history is 7 days; paid retention runs from 1 to 24 months.
- Slow query logs, error logs and RDS event notifications fill the gaps that metrics cannot explain.
- Alarm on symptoms users feel (latency, connection saturation, storage running out), then use the deeper tools to find the cause.
The five RDS monitoring tools at a glance
| Tool | What it measures | Source of data | Typical resolution | Best question it answers |
|---|---|---|---|---|
CloudWatch metrics (AWS/RDS) | CPU, memory, storage, IOPS, disk latency, throughput, connections, replica lag | Hypervisor and RDS service | 1 minute for most metrics; CPU credit metrics every 5 minutes | Is the instance healthy and does it have headroom? |
| Enhanced Monitoring | OS metrics and a per-process list (CPU, memory, file system, disk I/O) | Agent on the DB instance | 1 to 60 seconds | Which process is eating CPU or memory right now? |
| CloudWatch Database Insights | Database load broken down by waits, SQL statements, hosts and users | Engine-level sampling | Near real time, 7 days history by default | Which query or wait event is slowing the database? |
| Database logs | Errors, slow queries, general activity, audit records | The database engine | Per event | What exactly did the engine report at 02:14? |
| RDS events and EventBridge | Failovers, reboots, maintenance, backups, configuration changes | RDS control plane | Per event | Did something change on the instance before the slowdown? |
Question 1: is the instance short of resources?
Start with CloudWatch metrics. They cost nothing extra, they are already collected, and they tell you within a minute whether the instance is running out of something. The AWS metrics reference for RDS lists every metric; these are the ones worth putting on a first dashboard.
| Metric | Unit | What a bad trend usually means |
|---|---|---|
CPUUtilization | Percent | Expensive queries, missing indexes, or an undersized instance class |
FreeableMemory | Bytes | Buffer cache under pressure; for MySQL, MariaDB, Oracle and PostgreSQL it reports MemAvailable from /proc/meminfo |
SwapUsage | Bytes | The engine is paging to disk, which hurts latency badly |
FreeStorageSpace | Bytes | Data growth, binary logs or transaction logs filling the volume |
ReadLatency / WriteLatency | Seconds | Average time per disk I/O; rising values point at storage limits |
ReadIOPS / WriteIOPS | Count per second | Workload is hitting provisioned or baseline IOPS |
DiskQueueDepth | Count | I/O requests are waiting; often appears together with high latency |
DatabaseConnections | Count | Connection leaks, missing pooling, or a traffic spike |
ReplicaLag | Seconds | A read replica cannot keep up with the source |
BurstBalance | Percent | gp2 volume burst credits are running out |
CPUCreditBalance | Credits | A burstable db.t instance is close to its CPU baseline |
Two notes from the AWS reference save confusion. First, the RDS console can show a metric in a different unit from the one sent to CloudWatch (megabytes on screen, bytes in CloudWatch), so check units when you build alarms. Second, DatabaseConnections counts client network connections only; the engine can have more sessions than the metric shows.
You can pull a metric from the CLI when you want numbers rather than a graph:
aws cloudwatch get-metric-statistics \
--namespace AWS/RDS \
--metric-name ReadLatency \
--dimensions Name=DBInstanceIdentifier,Value=orders-db \
--start-time 2026-11-07T00:00:00Z \
--end-time 2026-11-07T06:00:00Z \
--period 300 \
--statistics Average Maximum
Alarms worth creating on day one
FreeStorageSpacebelow a fixed number of gigabytes that gives you a few days of growth.CPUUtilizationabove a sustained threshold for 10 to 15 minutes, not a single data point.DatabaseConnectionsclose to the engine's configured maximum.ReplicaLagabove the staleness your application can tolerate.FreeableMemorylow together with risingSwapUsage.
Our post on CloudWatch alarm types covers static, anomaly detection and composite alarms if you want fewer noisy pages.
Question 2: what is happening inside the operating system?
CloudWatch takes CPU numbers from the hypervisor. Enhanced Monitoring takes them from an agent running on the DB instance. AWS notes that the two can differ because the hypervisor does a small amount of work of its own, and the gap can be larger on small instance classes. When you need to know which process is using CPU or memory, the agent view is the one to trust.
Enhanced Monitoring is available for Db2, MariaDB, Microsoft SQL Server, MySQL, Oracle and PostgreSQL. You turn it on per instance and pick a granularity of 1, 5, 10, 15, 30 or 60 seconds. It needs an IAM role that RDS can assume (the console can create rds-monitoring-role for you, using the AmazonRDSEnhancedMonitoringRole managed policy). From the CLI:
aws rds modify-db-instance \
--db-instance-identifier orders-db \
--monitoring-interval 15 \
--monitoring-role-arn arn:aws:iam::123456789012:role/rds-monitoring-role
Setting --monitoring-interval 0 turns it off. Changing it does not need a reboot.
A few practical points from the Enhanced Monitoring overview:
- The data is stored in CloudWatch Logs, not CloudWatch metrics, in a log group called
RDSOSMetrics. Default retention is 30 days; change it on the log group. - Cost follows CloudWatch Logs ingestion and storage, so a 1 second interval on every instance in a large fleet gets expensive. Use fine granularity on the instances you are investigating and 60 seconds elsewhere.
- The RDS console refreshes at most every 5 seconds. To see true 1 second data, read the log stream.
- Because the output is JSON in CloudWatch Logs, you can create metric filters from it or ship it to another monitoring system.
Question 3: which query or wait is slowing the database?
Resource metrics tell you the database is busy. They do not tell you why. For that you need database load analysis, which samples active sessions and groups them by wait event, SQL statement, host and user.
AWS now documents this capability as monitoring DB load with Amazon CloudWatch Database Insights. The Performance Insights API is still documented for retrieving these metrics programmatically, so scripts written against it keep a supported path. According to the current RDS guide, RDS enables Database Insights in Advanced mode by default, which adds lock diagnostics, execution plan capture and fleet-level monitoring. The default history is 7 days, and you can buy retention of 1 to 24 months.
How to read database load
The central chart is database load, measured in average active sessions (AAS). Compare it with the maximum CPU line, which equals the number of vCPUs. If load sits well above that line, sessions are queuing. Then slice the load:
- By wait event: CPU waits suggest compute-heavy queries; I/O waits point at storage; lock waits mean sessions are blocking each other.
- By SQL: the top statements by load are where tuning pays off first.
- By host or user: shows whether one application or batch job is responsible.
For MySQL and MariaDB, detailed per-query data depends on the Performance Schema; the RDS guide has a page on how RDS manages it. For PostgreSQL, the pg_stat_statements extension gives similar statement statistics at the SQL level.
Question 4: what did the engine actually log?
Metrics and load charts summarise. Logs give you the exact statement, the exact error and the exact timestamp. RDS lets you view and download engine logs from the console or CLI, and publish them to CloudWatch Logs so they are kept and searchable.
| Engine | Logs most useful for performance work | How you enable them |
|---|---|---|
| MySQL / MariaDB | Slow query log, error log | slow_query_log and long_query_time in the DB parameter group |
| PostgreSQL | PostgreSQL log with slow statements | log_min_duration_statement in the DB parameter group |
| SQL Server | Error log, SQL Server Agent log | Available by default; publish to CloudWatch Logs |
| Oracle | Alert log, trace files, listener log | Available by default; publish to CloudWatch Logs |
Once logs are in CloudWatch Logs, Logs Insights can count slow statements per minute or find the worst offenders. Our guide to CloudWatch Logs Insights shows the query syntax.
Question 5: did something change on the instance?
Many slowdowns line up with an event: a Multi-AZ failover, a reboot, a maintenance window, a backup, a parameter group change, or storage autoscaling. RDS records these as events. You can view recent events in the console or with aws rds describe-events, subscribe to them through RDS event notifications (delivered via Amazon SNS), or route them with Amazon EventBridge.
Read the events list before you start tuning queries. A failover explains a burst of connection errors far faster than any query plan will. If you run Multi-AZ, our post on why Multi-AZ is recommended for RDS explains what happens during a failover and why clients see brief errors.
A practical troubleshooting order
- Check events. Rule out a failover, reboot or configuration change in the window.
- Check CloudWatch metrics. Find which resource moved: CPU, memory, storage latency, connections or replica lag.
- Open database load. If load exceeds vCPUs, slice by wait and SQL to find the statement and wait type.
- Use Enhanced Monitoring if CPU or memory is high but load analysis does not explain it. An OS process (or the engine's own background work) may be the cause.
- Read the logs for the exact statement, error text and timing.
- Fix and confirm. Add an index, rewrite the query, add a read replica, raise IOPS or resize, then watch the same metrics return to baseline.
Which tool should you turn on first?
| Situation | Turn on | Why |
|---|---|---|
| Dev or test database | Default CloudWatch metrics and a storage alarm | Low cost; catches the most common outage (full disk) |
| Production, small team | Metrics, alarms, Database Insights default mode, slow query log to CloudWatch Logs | Covers resources, query load and evidence for root cause |
| Production, latency-sensitive | Everything above plus Enhanced Monitoring at 15 to 60 seconds and longer insights retention | Lets you compare against last month and see OS-level detail |
| Fleet of many instances | Fleet-level views in Database Insights and alarms through infrastructure as code | Keeps monitoring consistent as instances are added |
Bringing RDS into a wider observability stack
Many teams already run Prometheus and Grafana for applications. You can keep RDS data in CloudWatch and add CloudWatch as a Grafana data source, or export CloudWatch metrics into Prometheus with an exporter. Either way, put database latency next to application latency on one dashboard, because a slow query shows up as slow API responses first. Our CloudWatch vs Prometheus comparison and the list of 18 observability metrics for cloud-native systems help decide what to collect where.
Common mistakes
- Alarming on averages only. A 5 minute average CPU of 60 percent can hide spikes to 100 percent. Use Maximum for spiky metrics.
- Ignoring storage until it is full. A full volume stops writes.
FreeStorageSpaceis the single most useful alarm. - Setting 1 second Enhanced Monitoring everywhere. It raises CloudWatch Logs cost with little benefit on quiet instances.
- Tuning queries before checking events. A failover or parameter change may be the whole story.
- Running production on burstable classes. AWS recommends T classes only for development, test and other non-production servers; watch
CPUCreditBalanceif you use them.
If you want hands-on practice with RDS, CloudWatch and IAM roles like the ones above, our AWS Solutions Architect Associate training runs in our Kharadi, Pune classroom and live online.
Frequently asked questions
What monitoring tools does Amazon RDS provide?
RDS offers CloudWatch metrics, Enhanced Monitoring for OS-level data, CloudWatch Database Insights for query and wait analysis, database logs that can be published to CloudWatch Logs, and RDS events delivered through SNS notifications or EventBridge.
What is the difference between CloudWatch metrics and Enhanced Monitoring for RDS?
CloudWatch gathers CPU data from the hypervisor at one minute resolution. Enhanced Monitoring uses an agent on the DB instance, reports per-process detail, and can collect every 1, 5, 10, 15, 30 or 60 seconds. Values can differ slightly because the hypervisor does some work of its own.
Is Performance Insights still available for RDS?
AWS now documents RDS database load analysis under CloudWatch Database Insights, and the Performance Insights API is still documented for retrieving metrics. Check the current RDS user guide and pricing page for the mode and retention that fit your instances.
How long does RDS keep Enhanced Monitoring data?
Enhanced Monitoring data is stored in the RDSOSMetrics log group in CloudWatch Logs for 30 days by default. You can change the retention on that log group.
Which RDS metrics should I alarm on first?
Start with FreeStorageSpace, sustained CPUUtilization, DatabaseConnections near the engine limit, ReplicaLag if you use replicas, and low FreeableMemory combined with rising SwapUsage.
How do I find slow queries on RDS?
Use Database Insights to see which SQL statements create the most load, and enable the slow query log (MySQL, MariaDB) or log_min_duration_statement (PostgreSQL) in the parameter group, then publish the logs to CloudWatch Logs for searching.
Does Enhanced Monitoring cost extra?
Enhanced Monitoring data is billed as CloudWatch Logs ingestion and storage once you exceed the free amounts. Shorter intervals and more instances mean more data and higher cost.
Can I view RDS metrics in Grafana?
Yes. Grafana can use CloudWatch as a data source, or you can export CloudWatch metrics to Prometheus with an exporter and chart them alongside application metrics.
References
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0