X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Felasticsearch.git;a=blobdiff_plain;f=elasticsearch%2Fmeta%2Fprometheus.yml;h=464111d1feb7d32f57ffe58f84a08944b1222af3;hp=e2885b47d13991870098bbebf665fcfb20939cc1;hb=refs%2Fchanges%2F53%2F7553%2F3;hpb=1740e71f975491a6f50a4b77ce2902cc5cb09286 diff --git a/elasticsearch/meta/prometheus.yml b/elasticsearch/meta/prometheus.yml index e2885b4..464111d 100644 --- a/elasticsearch/meta/prometheus.yml +++ b/elasticsearch/meta/prometheus.yml @@ -2,9 +2,18 @@ {% raw %} server: alert: + ElasticsearchDown: + if: >- + elasticsearch_up != 1 + labels: + severity: warning + service: elasticsearch + annotations: + summary: 'Elasticsearch service down' + description: 'Elasticsearch service is down on node {{ $labels.host }}' ElasticsearchClusterHealthStatusYellow: if: >- - min_over_time(elasticsearch_cluster_health_status[5m]) == 2 + max_over_time(elasticsearch_cluster_health_status[5m]) == 2 labels: severity: warning service: elasticsearch @@ -14,7 +23,7 @@ server: The Elasticsearch cluster status is YELLOW for the last 5 minutes. ElasticsearchClusterHealthStatusRed: if: >- - min_over_time(elasticsearch_cluster_health_status[5m]) == 3 + max_over_time(elasticsearch_cluster_health_status[5m]) == 3 labels: severity: critical service: elasticsearch