summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2020-11-10 20:13:43 +0300
committerGitHub <noreply@github.com>2020-11-10 20:13:43 +0300
commit6bcddef7f5d758a6610b89aefa0bce234d084d2b (patch)
tree92f7c4edc0d5af735611fde60ef8c6d9f4654a38 /health
parent84dd44e980c807fefb72c920bb3e7ecf442743f8 (diff)
health: convert `elasticsearch_last_collected` alarm to template (#10226)
Diffstat (limited to 'health')
-rw-r--r--health/health.d/elasticsearch.conf7
1 files changed, 5 insertions, 2 deletions
diff --git a/health/health.d/elasticsearch.conf b/health/health.d/elasticsearch.conf
index dffd40965f..f4423449f6 100644
--- a/health/health.d/elasticsearch.conf
+++ b/health/health.d/elasticsearch.conf
@@ -1,5 +1,8 @@
- alarm: elasticsearch_last_collected
- on: elasticsearch_local.cluster_health_status
+
+# make sure elasticsearch is running
+
+template: elasticsearch_last_collected
+ on: elasticsearch.cluster_health_status
calc: $now - $last_collected_t
units: seconds ago
every: 10s