serverless 创建应用
在 SAR 中搜索 Feishu-notifier
查到本应用(注意因为本项目会创建 EventBridge 到 SNS Publish 权限,按下图进行勾选
Eventbridge 规则
cloudwatch 告警
{
"detail-type": ["CloudWatch Alarm State Change"],
"source": ["aws.cloudwatch"]
}
Cloud Watch 状态变化告警:
时间: 2024-11-22T05:31:16Z
区域: us-west-2
资源: [arn:aws:cloudwatch:us-west-xxx:xxxxxx:alarm:j-2YSIVB0Lxxx4_ig-5xxxxxxxxx_Auto-Scaling-Remove-Node_EMR_Auto_Scaling]
告警名称: j-2xxxxxxxxxxL4_ig-5xxxxxF_Auto-Scaling-Remove-Node_EMR_Auto_Scaling
描述:
原因: Threshold Crossed: 1 datapoint [1.6 (22/11/24 05:30:00)] was not less than the threshold (0.7).
EC2服务器告警
https://github.com/Chris-wa-He/AWS-Lambda-notifier/tree/Feishu-notifier