gpt4 book ai didi

amazon-web-services - CloudWatch 警报 : how to describe the alarm with metrics by ElasticSearch node, 的 AWS CloudFormation 模板不是整个 ElasticSearch 集群

转载 作者:行者123 更新时间:2023-12-02 23:51:39 25 4
gpt4 key购买 nike

我有用于 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 警报?

最佳答案

Managing Amazon Elasticsearch Service Domains文档列出了集群中每个实例可用的指标,主要围绕线程池和 JVM 指标。

有一个 SysMemoryUtilization 指标,定义为正在使用的实例内存百分比

关于amazon-web-services - CloudWatch 警报 : how to describe the alarm with metrics by ElasticSearch node, 的 AWS CloudFormation 模板不是整个 ElasticSearch 集群,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57203584/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com