51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

promethues 监控 Elasticsearch集群告警规则 elasticsearch_exporter_rules.yml

promethues 监控 es 集群告警规则 elasticsearch_exporter_rules.yml

elasticsearch_exporter_rules.yml

groups:
   - name: ElasticSearch服务监控
     rules:
     - alert: ES集群节点减少
       expr: elasticsearch_cluster_health_number_of_nodes < 3  #ES集群节点数3
       for: 5m
       labels:
         severity: 严重告警
       annotations:
         summary: "ES集群节点减少:{{$.Labels.job}}"
         description: "ES集群节点数减少:{{$.Labels.job}},(当前:{{$value}})"
    
     - alert: jvm内存使用率告警
       expr: elasticsearch_jvm_memory_used_bytes{area="heap"} / elasticsearch_jvm_memory_max_bytes{area="heap"}*100 > 90
       for: 5m
       labels:
         severity: 严重告警
       annotations:
         summary: "jvm内存使用率过高:{{$.Labels.job}}"
         description: "jvm内存使用率过高:{{$.Labels.job}}大于90%,(当前:{{$value}})"
赞(2)
未经允许不得转载:工具盒子 » promethues 监控 Elasticsearch集群告警规则 elasticsearch_exporter_rules.yml