lework.github.io icon indicating copy to clipboard operation
lework.github.io copied to clipboard

2019/09/26/aws-alert/

Open utterances-bot opened this issue 2 years ago • 3 comments

使用aws-cli为常用产品批量添加监控告警

aws中国竟然没有为产品批量添加监控报警的功能…呵呵呵呵,为了减轻工作,实现批量初始化,没有我们就动手自己写脚本吧,使用aws-cli工具可以获取到各项产品的信息,并且可以管理产品。

https://lework.github.io/2019/09/26/aws-alert/

utterances-bot avatar Mar 29 '22 06:03 utterances-bot

第一段为ec2添加批量告警,注释里写成了lb2了,大佬手滑了

获取当前可用区内所有lb2的基础信息

def getAll():
comm1 = "%s ec2 describe-instances" % Contants['AWSCLI']

seecsea avatar Mar 29 '22 06:03 seecsea

多谢大佬,脚本相当好用,包括那个使用event自动添加、删除告警的。

seecsea avatar Mar 30 '22 10:03 seecsea

mark

stardustman avatar Apr 27 '22 06:04 stardustman