Skip to content

Commit 82aa2f5

Browse files
authored
Add NodeBondingDegraded alert from upstream (#34)
1 parent 69574d0 commit 82aa2f5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/node-mixin/lib/linux/alerts/alerts.libsonnet

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,20 @@
432432
description: 'Systemd service {{ $labels.name }} has been restarted too many times at {{ $labels.instance }} for the last 15 minutes. Please check if service is crash looping.',
433433
},
434434
},
435+
{
436+
alert: 'NodeBondingDegraded',
437+
expr: |||
438+
(node_bonding_slaves{%(filteringSelector)s} - node_bonding_active{%(filteringSelector)s}) != 0
439+
||| % this.config,
440+
'for': '5m',
441+
labels: {
442+
severity: 'warning',
443+
},
444+
annotations: {
445+
summary: 'Bonding interface is degraded.',
446+
description: 'Bonding interface {{ $labels.master }} on {{ $labels.instance }} is in degraded state due to one or more slave failures.',
447+
},
448+
},
435449
{
436450
alert: 'NodeHasRebooted',
437451
expr: |||

0 commit comments

Comments
 (0)