From f3a7dc466714ecdd72b6ff75054d34e3bf998728 Mon Sep 17 00:00:00 2001 From: nd Date: Sat, 13 Jun 2020 17:32:18 +0200 Subject: [PATCH] increased avg span for disc filling alarms --- defaults/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 8fcb33a..516268a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -64,24 +64,24 @@ prometheus_agent: group: nodeexporter alert: DiscFilling enabled: True - expr: predict_linear(node_filesystem_free_bytes{fstype!~"tmpfs", job="node", instance="{{ inventory_hostname }}"}[1h], 12 * 3600) < 0 + expr: predict_linear(node_filesystem_free_bytes{fstype!~"tmpfs", job="node", instance="{{ inventory_hostname }}"}[4h], 12 * 3600) < 0 for: 5m labels: severity: warning annotations: title: '{%raw%}{{ $labels.instance }}: DiscFillingWarning{%endraw%}' - description: "Node disc is filling" + description: "Node disc is filling in 12h" DiscFillingCritical: group: nodeexporter alert: DiscFilling enabled: True - expr: predict_linear(node_filesystem_free_bytes{fstype!~"tmpfs", job="node", instance="{{ inventory_hostname }}"}[1h], 1 * 3600) < 0 + expr: predict_linear(node_filesystem_free_bytes{fstype!~"tmpfs", job="node", instance="{{ inventory_hostname }}"}[4h], 1 * 3600) < 0 for: 5m labels: severity: critical annotations: title: '{%raw%}{{ $labels.instance }}: DiscFillingCritical{%endraw%}' - description: "Node disc is filling fast" + description: "Node disc is filling in 1h" DiscInodesWarning: group: nodeexporter enabled: True