From ae5dcb1575fd92f4c89711e8056c90658e1aad7d Mon Sep 17 00:00:00 2001 From: Julian Labus Date: Wed, 7 Nov 2018 15:33:41 +0100 Subject: [PATCH] Role service-prometheus: fix NoTraffic alert --- playbooks/prometheus/alert.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/prometheus/alert.rules b/playbooks/prometheus/alert.rules index 6c75986..a329be4 100644 --- a/playbooks/prometheus/alert.rules +++ b/playbooks/prometheus/alert.rules @@ -103,8 +103,8 @@ groups: - name: fastd rules: - - alert: NoTraffic - expr: fastd_tx_bytes{interface!~".*-1312"} == 0 + - alert: FastdNoTraffic + expr: irate(fastd_tx_bytes{interface!~".*-1312"}[5m]) == 0 for: 5m annotations: description: 'No TX data was seen on a fastd interface for more than 5 minutes'