From 598859d6c3c591f2a08c7243b84947035258d6f7 Mon Sep 17 00:00:00 2001 From: ziv Date: Mon, 1 Aug 2022 15:20:50 +0800 Subject: [PATCH] add es alerts --- inputs/elasticsearch/alerts.json | 68 ++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 inputs/elasticsearch/alerts.json diff --git a/inputs/elasticsearch/alerts.json b/inputs/elasticsearch/alerts.json new file mode 100644 index 0000000..15a5172 --- /dev/null +++ b/inputs/elasticsearch/alerts.json @@ -0,0 +1,68 @@ +[ + { + "name": "Elasticsearch Down", + "note": "", + "prod": "", + "algorithm": "", + "algo_params": null, + "delay": 0, + "severity": 2, + "disabled": 0, + "prom_for_duration": 0, + "prom_ql": "elasticsearch_up{} == 0", + "prom_eval_interval": 15, + "enable_stime": "00:00", + "enable_etime": "23:59", + "enable_days_of_week": [ + "1", + "2", + "3", + "4", + "5", + "6", + "0" + ], + "enable_in_bg": 0, + "notify_recovered": 1, + "notify_channels": [], + "notify_repeat_step": 60, + "notify_max_number": 0, + "recover_duration": 0, + "callbacks": [], + "runbook_url": "", + "append_tags": [] + }, + { + "name": "ElastricSearch Cluster Status Red", + "note": "", + "prod": "", + "algorithm": "", + "algo_params": null, + "delay": 0, + "severity": 2, + "disabled": 0, + "prom_for_duration": 60, + "prom_ql": "min(elasticsearch_cluster_health_status_code{}) by (cluster) == 3 ", + "prom_eval_interval": 15, + "enable_stime": "00:00", + "enable_etime": "23:59", + "enable_days_of_week": [ + "1", + "2", + "3", + "4", + "5", + "6", + "0" + ], + "enable_in_bg": 0, + "notify_recovered": 1, + "notify_channels": [], + "notify_repeat_step": 60, + "notify_max_number": 0, + "recover_duration": 0, + "callbacks": [], + "runbook_url": "", + "append_tags": [] + } +] \ No newline at end of file