amazon-rds – 已分配的存储已耗尽 – 需要进行规模存储才能解决

我在Amazon RDS实例警报部分中收到了上述消息.当RDS报告此类违规行为时,如何通过电子邮件收到通知. 最佳答案 监控
Amazon RDS(以及任何其他AWS服务)的最直接选项是
Amazon CloudWatch,它提供了一个可靠,可扩展且灵活的监控解决方案,您可以在几分钟内开始使用,具体包括
Alarms

[…] Alarms can automatically initiate actions on your behalf, based
on parameters you specify. An alarm watches a single metric over a
time period you specify, and performs one or more actions based on the
value of the metric relative to a given threshold over a number of
time periods. The action is a notification sent to an Amazon SNS topic
or Auto Scaling policy. […] [emphasis mine]

Amazon SNS依次支持多个传输协议上的通知,其中包括Email和Email-JSON,请参阅相应的FAQ What are the different delivery formats/transports for receiving notifications?

[…] Customers can select one the following transports as part
of the subscription requests:

  • […]
  • ”Email”, “Email-JSON” – Messages are
    sent to registered addresses as email. Email-JSON sends notifications
    as a JSON object, while Email sends text-based email.

有问题的指标是FreeStorageSpace RDS指标(有关可用指标的详细信息,请参阅Amazon RDS Dimensions and Metrics),如Scaling DB Instance Storage所述:

Important
We highly recommend that you constantly monitor the
FreeStorageSpace RDS metric published in CloudWatch to ensure that
your DB Instance has enough free storage space. For more information
on monitoring RDS DB Instances, see 07007.

因此,您需要创建一个警报镜像或接近AWS在控制台中向您报告的阈值,将其发布到SNS主题并通过您选择的电子邮件地址订阅此主题.

点赞