![](/img/trans.png)
[英]How to correctly configure Route53 HealthCheck Alarm with CF (in Sydney)
[英]Create Cloudwatch Alarm for Route53 Healthcheck Status via Cloudformation
我想使用 cloudformation 模板为某些端点的 Route53 Healthcheck 状态创建一个 cloudwatch 警报。
这是我的 Route53 HealthCheck 状态的 cloudformation 模板:
EndpointHealthCheck:
Properties:
HealthCheckConfig:
AlarmIdentifier:
Name: !Ref EndpointCriticalAlarm
Region: !Ref AWS::Region
Type: HTTPS
ResourcePath: /sample/path
FullyQualifiedDomainName: sample.com
RequestInterval: 60
FailureThreshold: 5
这是我的 cloudwatch 警报:
EndpointCriticalAlarm:
Type: "AWS::CloudWatch::Alarm"
Properties:
AlarmDescription: sample description
AlarmName: HealthCheckAlarm
Namespace: "AWS/Route53"
MetricName: HealthCheckStatus
ComparisonOperator: GreaterThanOrEqualToThreshold
Period: 60
EvaluationPeriods: 1
Statistic: Average
Threshold: !Ref FailureThreshold
AlarmActions:
- !Ref AlarmSNSTopicArn
cloudwatch 警报是否能够从 Route53 健康检查状态收集数据? 谢谢
我曾经遇到过同样的问题,警报定义中的ActionsEnabled: true
修复了
由于适用于 CloudFormation 和 HealthCheck 警报的区域限制,这是不可能的: https ://stackoverflow.com/a/66969674/1714171
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.