Role service-prometheus: add alert if no traffic is seen on a fastd interface

This commit is contained in:
Julian Labus 2018-11-07 13:01:36 +01:00
parent 2b0e5d7c4a
commit 55591b3146
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A

View file

@ -100,3 +100,12 @@ groups:
description: 'A systemd service changed its state more than 5x/5min or 15x/1h' description: 'A systemd service changed its state more than 5x/5min or 15x/1h'
summary: 'Instance {{ $labels.instance }}: Service {{ $labels.name }} is flapping' summary: 'Instance {{ $labels.instance }}: Service {{ $labels.name }} is flapping'
value: '{{ $labels.name }}' 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 }}'