![](/img/trans.png)
[英]AWS cloudwatch alarm can't access data from EMR cluster metrices when formed by cloudformation template
[英]AWS CloudFormation template for CloudWatch alarm: how to describe the alarm with metrics by ElasticSearch node, not by whole ElasticSearch cluster
我有适用于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警报?
《 管理Amazon Elasticsearch Service域》文档列出了可用于集群中每个单独实例的指标,主要涉及线程池和JVM指标。
有一个SysMemoryUtilization
指标,定义为The percentage of the instance's memory that is in use
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.