1 {%- if pillar.elasticsearch.server is defined %}
5 ElasticsearchClusterHealthStatusYellow:
7 min_over_time(elasticsearch_cluster_health_status[5m]) == 2
10 service: elasticsearch
12 summary: Elasticsearch cluster status is YELLOW
14 The Elasticsearch cluster status is YELLOW for the last 5 minutes.
15 ElasticsearchClusterHealthStatusRed:
17 min_over_time(elasticsearch_cluster_health_status[5m]) == 3
20 service: elasticsearch
22 summary: 'Elasticsearch cluster status is RED'
24 The Elasticsearch cluster status is RED for the last 5 minutes.
25 ElasticsearchClusterDiskLowWaterMark:
27 (max(elasticsearch_fs_total_total_in_bytes) by (host, instance) - max(elasticsearch_fs_total_available_in_bytes) by (host, instance)) / max(elasticsearch_fs_total_total_in_bytes) by (host, instance) * 100.0 >= 85
31 service: elasticsearch
33 summary: 'Elasticsearch low disk watermark [85%] exceeded on node {{ $labels.host}} instance {{ $labels.instance }}'
35 Elasticsearch will not allocate new shards to node {{ $labels.host }}
37 ElasticsearchClusterDiskHighWaterMark:
39 (max(elasticsearch_fs_total_total_in_bytes) by (host, instance) - max(elasticsearch_fs_total_available_in_bytes) by (host, instance)) / max(elasticsearch_fs_total_total_in_bytes) by (host, instance) * 100.0 >= 90
42 summary: 'Elasticsearch high disk watermark [90%] exceeded on node {{ $labels.host}} instance {{ $labels.instance }}'
44 Elasticsearch will not allocate new shards to node {{ $labels.host }} and will attempt to relocate shards to another node
47 service: elasticsearch