1

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

4

1 回答 1

0

管理 Amazon Elasticsearch Service 域文档列出了可用于集群中每个单独实例的指标,主要围绕线程池和 JVM 指标。

有一个SysMemoryUtilization度量定义为The percentage of the instance's memory that is in use

于 2019-07-25T14:30:46.720 回答