Skip to content

Commit

Permalink
Add NodeBondingDegraded alert (prometheus#2843)
Browse files Browse the repository at this point in the history
Signed-off-by: Ayoub Nasr <ayoub.nasr@scality.com>
  • Loading branch information
Ayoub NASR authored and oblitorum committed Apr 9, 2024
1 parent 72366fc commit f201b11
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/node-mixin/alerts/alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
},
},
],
},
],
Expand Down

0 comments on commit f201b11

Please sign in to comment.