AWS RDS instance enhanced monitoring
Welcome to CloudAffaire and this is Debjeet.
In the last blog post, we have discussed how to monitor an AWS RDS instance using CloudWatch metrics.
In this blog post, we will discuss AWS RDS enhanced monitoring.
AWS RDS also provides the ability to monitor the OS level metrics in the form of enhanced monitoring. The difference between normal CloudWatch monitoring and enhanced monitoring is that in case of normal monitoring, AWS RDS gather the metrics from the hypervisor for a DB instance, and Enhanced Monitoring gathers its metrics from an agent on the instance.
By default, Enhanced Monitoring metrics are stored in the CloudWatch Logs for 30 days. To modify the amount of time the metrics are stored in the CloudWatch Logs, change the retention for the RDSOSMetrics log group in the CloudWatch console.
Note: Enhanced Monitoring is available for all DB instance classes except for db.m1.small.
Next, we are going to enable ‘Enhanced Monitoring’ for our AWS RDS instance.
Prerequisites for this demo:
- AWS RDS instance.
AWS RDS enhanced monitoring:
Step 1: Login to AWS console and navigate to ‘RDS’.
Step 2: In the navigation pane, click ‘Databases’. Select your RDS instance and click ‘Modify’.
Step 3: Go to the ‘Monitoring’ section and enable ‘Enhanced Monitoring’.
Step 4: To view the enhanced monitoring metrics, navigate to ‘Monitoring’ tab and from drop-down select ‘Enhanced monitoring’.
You can also view the OS level processes by selecting the ‘OS process list’ from the drop-down.
Step 5: To view the detail logs of enhanced monitoring, navigate to ‘CloudWatch’ and click ‘Logs’. Click on the log group ‘RDSOMetrics’.
Click on the log stream
Expand any of the log events and you will get details OS level metric for your RDS instance in JSON format.
Hope you have enjoyed this article, In the next blog post, we will discuss AWS RDS performance insight.
To get more details on AWS RDS, please refer below AWS documentation