Wondering how to create CloudWatch alarms to monitor the Amazon RDS storage? We can help you!
Here, at Bobcares, we often receive similar queries as a part of our AWS Support Services.
Today, let’s see the steps followed by our Support Engineers to create CloudWatch alarms to monitor RDS storage.
Create CloudWatch alarms to monitor the Amazon RDS storage
We can use AWS CLI or AWS CloudWatch console to create alarms to monitor the free RDS storage space. The CloudWatch alarm will notify us when the storage space reaches beyond the mentioned threshold. So this will not only help us to prevent storage full issues but also prevent downtime due to storage full issues.
Now, let’s see the steps followed by our Support Techs to create a CloudWatch alarm from the AWS CloudWatch console to monitor RDS storage:
- Log in to the AWS Management console and then open the CloudWatch console.
2. Select Alarms and then select Create alarm.
3. Choose Select metric.
4. Select RDS from the All metrics tab.
5. Then select Per-Database Metrics.
6. Search for the FreeStorageSpace metric.
7. Select the DB instance Identifier FreeStorageSpace metric for the instance we want to monitor.
8. Then we have to configure the threshold.
9. Then we need to configure the threshold under the Conditions section by selecting Lower/Equal, and also specify the threshold value in bytes.
10. Select Next.
11. Then from the Configure actions page, select in Alarm for the alarm state.
12. Select Create a new topic from the option Select an SNS topic.
13. Then enter a topic name like alarm-for-rds-storage.
14. Enter an email address to receive the storage space notification.
15. Then select Create topic. Now, it will send a confirmation mail to the specified email address.
16. Check the email notification and select Confirm subscription.
17. Then select Next.
18. Now enter a name and a description for the alarm and then click Next.
19. Then review the preview of the metric and select Create alarm.
20. After creating the alarm, open the RDS console and select Databases.
21. Select the name of the database and select the Monitoring tab to see the metrics for FreeStorageSpace.
Also, it is always better to create two alarms so that it can include one with a higher threshold and the other with a lower threshold.
[Need help with more AWS queries? We’d be happy to assist]
Conclusion
To conclude, today we saw the steps followed by our Support Engineers to create CloudWatch alarms to monitor RDS storage.
0 Comments