简体   繁体   English

适用于 RDS 的 AWS cloudwatch 警报

[英]AWS cloudwatch alarm for RDS

有没有办法根据可用磁盘百分比为我的 RDS 实例在 cloudwatch 上发出警报(我知道我可以打开增强监控并且该指标在那里,但我不能在 cloudwatch 警报上使用这些指标)如果没有一个好的出路?

RDS doesn't report percentage of disk space free, but it does report the amount of free space available. RDS 不会报告可用磁盘空间的百分比,但会报告可用的可用空间量。 See the list of CloudWatch metrics available for your RDS instances here .此处查看可用于 RDS 实例的 CloudWatch 指标列表。

You would need to create alarms on the FreeStorageSpace metric reported by each of your instances.您需要针对每个实例报告的FreeStorageSpace指标创建警报。

See an option using Enhanced Monitoring and log metrics enter link description .查看使用增强监控和日志指标的选项输入链接描述 Basically you can turn on enhanced monitoring for RDS and then parse the JSON logs to get the usedPercentage value for the storage filesystem.基本上,您可以打开 RDS 的增强监控,然后解析 JSON 日志以获取存储文件系统的usedPercentage值。 This can be turned into a log metric that can be associated with an alarm.这可以变成可以与警报关联的日志指标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM