我有 CloudWatch 警报的 CloudFormation 模板,它与来自 ElasticSearch 集群的指标一起使用,这里是:
...
Resources:
EsCPUUtilizationTooHighAlarm:
Type: "AWS::CloudWatch::Alarm"
Properties:
AlarmName: "es-cpu-utilization-too-high"
AlarmActions:
- !Ref AlarmsSnsTopic
AlarmDescription: "ES cluster CPU usage above 80%"
ComparisonOperator: "GreaterThanThreshold"
TreatMissingData: "missing"
Dimensions:
- Name: ClientId
Value: !Ref "AWS::AccountId"
- Name: DomainName
Value: !Ref ElasticsearchCluster
EvaluationPeriods: 1
MetricName: "CPUUtilization"
Namespace: "AWS/ES"
Period: "300"
Statistic: "Average"
Threshold: "80"
...
如您所见,此警报跟踪来自整个 ElasticSearch 集群的指标,但我想创建一些此类警报并分别跟踪每个 ElasticSearch 节点。如何使用 CloudFormation 模板描述此类 CloudWatch 警报?