diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2020-11-10 20:13:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 20:13:43 +0300 |
commit | 6bcddef7f5d758a6610b89aefa0bce234d084d2b (patch) | |
tree | 92f7c4edc0d5af735611fde60ef8c6d9f4654a38 /health | |
parent | 84dd44e980c807fefb72c920bb3e7ecf442743f8 (diff) |
health: convert `elasticsearch_last_collected` alarm to template (#10226)
Diffstat (limited to 'health')
-rw-r--r-- | health/health.d/elasticsearch.conf | 7 |
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 |