From f6fbb6ae040c535f748ae2e16b8a0d8c9edcfbb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 9 Jan 2023 23:39:31 +0100 Subject: [PATCH] Round throughput alerts to be less flappy --- hosts/prometheus/rules.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/prometheus/rules.yaml b/hosts/prometheus/rules.yaml index f6eb3616..f11c0870 100644 --- a/hosts/prometheus/rules.yaml +++ b/hosts/prometheus/rules.yaml @@ -68,7 +68,7 @@ groups: summary: memory full - alert: throughput0 - expr: increase(collectd_interface_if_octets_0_total[10m]) > 10 * 3600 * 1024^2 + expr: round(increase(collectd_interface_if_octets_0_total[10m]),100000000) > 10*3600*1024^2 for: 2h labels: severity: warn @@ -76,7 +76,7 @@ groups: summary: sustained throughput - alert: throughput1 - expr: increase(collectd_interface_if_octets_1_total[10m]) > 10 * 3600 * 1024^2 + expr: round(increase(collectd_interface_if_octets_1_total[10m]),100000000) > 10*3600*1024^2 for: 2h labels: severity: warn