Add NodeBondingDegraded alert (#2843)

Signed-off-by: Ayoub Nasr <ayoub.nasr@scality.com>
This commit is contained in:
Ayoub NASR 2023-11-13 00:36:30 +01:00 committed by GitHub
parent 74ff1c6937
commit 7333465abf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -407,6 +407,20 @@
description: 'Systemd service {{ $labels.name }} has entered failed state at {{ $labels.instance }}',
},
},
{
alert: 'NodeBondingDegraded',
expr: |||
(node_bonding_slaves - node_bonding_active) != 0
||| % $._config,
'for': '5m',
labels: {
severity: 'warning',
},
annotations: {
summary: 'Bonding interface is degraded',
description: 'Bonding interface {{ $labels.master }} on {{ $labels.instance }} is in degraded state due to one or more slave failures.',
},
},
],
},
],