Code Review
/
salt-formulas
/
elasticsearch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Move suites definition from .travis.yml to .kitchen.yml
[salt-formulas/elasticsearch.git]
/
elasticsearch
/
meta
/
prometheus.yml
diff --git
a/elasticsearch/meta/prometheus.yml
b/elasticsearch/meta/prometheus.yml
index e2885b47d13991870098bbebf665fcfb20939cc1..464111d1feb7d32f57ffe58f84a08944b1222af3 100644
(file)
--- a/
elasticsearch/meta/prometheus.yml
+++ b/
elasticsearch/meta/prometheus.yml
@@
-2,9
+2,18
@@
{% raw %}
server:
alert:
{% 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: >-
ElasticsearchClusterHealthStatusYellow:
if: >-
- m
in
_over_time(elasticsearch_cluster_health_status[5m]) == 2
+ m
ax
_over_time(elasticsearch_cluster_health_status[5m]) == 2
labels:
severity: warning
service: elasticsearch
labels:
severity: warning
service: elasticsearch
@@
-14,7
+23,7
@@
server:
The Elasticsearch cluster status is YELLOW for the last 5 minutes.
ElasticsearchClusterHealthStatusRed:
if: >-
The Elasticsearch cluster status is YELLOW for the last 5 minutes.
ElasticsearchClusterHealthStatusRed:
if: >-
- m
in
_over_time(elasticsearch_cluster_health_status[5m]) == 3
+ m
ax
_over_time(elasticsearch_cluster_health_status[5m]) == 3
labels:
severity: critical
service: elasticsearch
labels:
severity: critical
service: elasticsearch