How do I get TotalStorageSpace or UsedStorageSpace metric from AWS RDS?

前端 未结 3 1021
栀梦
栀梦 2021-01-24 23:05

I see that AWS RDS provides a FreeStorageSpace metric for monitoring disk usage. Now I am trying to create a generic pre-emptive alert for all my R

3条回答
  •  遥遥无期
    2021-01-24 23:30

    First, you can check storage-related info in the monitoring section of AWS RDS.

    Now I am trying to create a generic pre-emptive alert for all my RDS but setting up an ideal threshold on FreeStorageSpace is not making sense.For example, 20G might be a good threshold with RDS having total disk space as 100G but might be misleading for a RDS with total disk space of 40G.

    If there is the different storage size then you need to configure multiple alarm based on size. A generic one will not work, as it does not accept percentage.

    How can I create CloudWatch alarms to monitor the Amazon RDS free storage space and prevent storage full issues?

    Short Description

    Create alarms in the CloudWatch console or use the AWS Command Line Interface (AWS CLI) to create alarms that monitor free storage space. By creating CloudWatch alarms that notify you when the FreeStorageSpace metric reaches a defined threshold, you can prevent storage full issues. This can prevent downtime that occurs when your RDS DB instance runs out of storage.

    Resolution Open the CloudWatch console, and choose Alarms from the navigation pane. - Choose Create alarm, and choose Select metric.

    • From the All metrics tab, choose RDS.

    • Choose Per-Database Metrics.

    • Search for the FreeStorageSpace metric.

    • For the instance that you want to monitor, choose the DB instance Identifier FreeStorageSpace metric.

    • In the Conditions section, configure the threshold. For example, choose Lower/Equal, and then specify the threshold value.

    Note: You must specify the value for the parameter in bytes. For example, 10 GB is 10737418240 bytes.

    Fore more details you can check storage-full-rds-cloudwatch-alarm

提交回复
热议问题