From f43931649a81a566f795223c018ecebf043fbee8 Mon Sep 17 00:00:00 2001 From: Julian Labus Date: Sat, 16 Mar 2019 23:54:25 +0100 Subject: [PATCH] Role service-prometheus: FastdNoTraffic - check if clients are connected --- roles/service-prometheus/files/alert.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/service-prometheus/files/alert.rules b/roles/service-prometheus/files/alert.rules index 14d1b50..721f7be 100644 --- a/roles/service-prometheus/files/alert.rules +++ b/roles/service-prometheus/files/alert.rules @@ -104,7 +104,7 @@ groups: - name: fastd rules: - alert: FastdNoTraffic - expr: irate(fastd_tx_bytes[5m]) == 0 and on(hostname,interface) (fastd_uptime_seconds / 60) > 15 + expr: irate(fastd_tx_bytes[5m]) == 0 and on(hostname, interface) fastd_peers_up_total > 0 and on(hostname, interface) (fastd_uptime_seconds / 60) > 15 for: 5m annotations: description: 'No TX data was seen on a fastd interface for more than 5 minutes'