Skip to content

Commit

Permalink
Add support for node down and softirq alert
Browse files Browse the repository at this point in the history
  • Loading branch information
yaguangtang committed Oct 8, 2024
1 parent 06b1ff5 commit 80cfa7f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions roles/kube_prometheus_stack/files/jsonnet/legacy.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,14 @@
severity: 'P5',
},
},
{
alert: 'NodeDown',
expr: 'up{job="node-exporter"} == 0',
'for': '2m',
labels: {
severity: 'P1',
},
},
],
},
{
Expand Down Expand Up @@ -226,6 +234,23 @@
alertRule('dropped', '0', '0.75'),
],
},
{
name: 'softirq',
rules: [
{
alert: 'NodeSoftirqRcu',
expr: 'rate(node_softirqs_total{vector="rcu"}[1m]) > 10000',
'for': '5m',
labels: {
severity: 'warning',
},
annotations: {
summary: 'High softirq rcu on node {{ $labels.instance }}: {{ $value }} ',
description: 'This can result in high software interrupt load on the node which can bring system performance down.',
},
},
],
},
],
},
},
Expand Down

0 comments on commit 80cfa7f

Please sign in to comment.