1 {%- if pillar.elasticsearch.server is defined or pillar.elasticsearch.client is defined %}
2 {%- from "elasticsearch/map.jinja" import server, client with context %}
6 {%- if client.get('enabled', False) %}
8 ElasticsearchClusterHealthStatusYellow:
10 elasticsearch_cluster_health_status == 2
13 service: elasticsearch
15 summary: Elasticsearch cluster status is YELLOW
17 The Elasticsearch cluster status is YELLOW for the last 5 minutes.
18 ElasticsearchClusterHealthStatusRed:
20 elasticsearch_cluster_health_status == 3
23 service: elasticsearch
25 summary: 'Elasticsearch cluster status is RED'
27 The Elasticsearch cluster status is RED for the last 5 minutes.
30 {%- if server.get('enabled', False) %}
34 elasticsearch_up{host=~'.*'} != 1
37 service: elasticsearch
39 summary: 'Elasticsearch service down'
40 description: 'Elasticsearch service is down on node {{ $labels.host }}'
41 ElasticsearchClusterDiskLowWaterMark:
43 (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
47 service: elasticsearch
49 summary: 'Elasticsearch low disk watermark [85%] exceeded on node {{ $labels.host}} instance {{ $labels.instance }}'
51 Elasticsearch will not allocate new shards to node {{ $labels.host }}
53 ElasticsearchClusterDiskHighWaterMark:
55 (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
58 summary: 'Elasticsearch high disk watermark [90%] exceeded on node {{ $labels.host}} instance {{ $labels.instance }}'
60 Elasticsearch will not allocate new shards to node {{ $labels.host }} and will attempt to relocate shards to another node
63 service: elasticsearch