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