From 55591b314610a95fc20f29c99f7c8f0647696777 Mon Sep 17 00:00:00 2001 From: Julian Labus Date: Wed, 7 Nov 2018 13:01:36 +0100 Subject: [PATCH] Role service-prometheus: add alert if no traffic is seen on a fastd interface --- playbooks/prometheus/alert.rules | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/playbooks/prometheus/alert.rules b/playbooks/prometheus/alert.rules index 7cf1f74..6c75986 100644 --- a/playbooks/prometheus/alert.rules +++ b/playbooks/prometheus/alert.rules @@ -100,3 +100,12 @@ groups: description: 'A systemd service changed its state more than 5x/5min or 15x/1h' summary: 'Instance {{ $labels.instance }}: Service {{ $labels.name }} is flapping' value: '{{ $labels.name }}' + +- name: fastd + rules: + - alert: NoTraffic + expr: fastd_tx_bytes{interface!~".*-1312"} == 0 + for: 5m + annotations: + description: 'No TX data was seen on a fastd interface for more than 5 minutes' + summary: 'Instance {{ $labels.instance }}: No traffic on {{ $labels.interface }}'