From dc43a0f26c0c5b4101812ef496f00a09ae0ad2f7 Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 25 Jun 2018 11:07:56 +0200 Subject: [PATCH] Add alerting prediction rules --- dicos/70_prometheus.xml | 7 ++++--- tmpl/predict-rules.yml | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 tmpl/predict-rules.yml diff --git a/dicos/70_prometheus.xml b/dicos/70_prometheus.xml index d0044e0..ca108d3 100644 --- a/dicos/70_prometheus.xml +++ b/dicos/70_prometheus.xml @@ -1,10 +1,11 @@ - + - + + prometheus @@ -147,7 +148,7 @@ Services complèmentairse Configuration du serveur Prometheus - Configuration des jobs standards + Configuration des jobs standards Configuration SMTP pour l'envois des alertes Destinatires Rêgles de distribution simples diff --git a/tmpl/predict-rules.yml b/tmpl/predict-rules.yml new file mode 100644 index 0000000..958a587 --- /dev/null +++ b/tmpl/predict-rules.yml @@ -0,0 +1,6 @@ +groups: + - name: PredictRules + rules: + - alert: disk_full_within_6_hours + expr: predict_linear(node_filesystem_free{job="%%{job_name_node}",mountpoint="/"}[1h], 6 * 3600) < 0 + for: 5m \ No newline at end of file