mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-25 02:46:59 +08:00
Merge pull request #168 from carlduevel/cpu-steal-alert
Add cpu steal alert
This commit is contained in:
commit
3358a43888
1 changed files with 4 additions and 0 deletions
|
|
@ -170,6 +170,10 @@ groups:
|
||||||
description: CPU load is > 80%
|
description: CPU load is > 80%
|
||||||
query: '100 - (avg by(instance) (rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100) > 80'
|
query: '100 - (avg by(instance) (rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100) > 80'
|
||||||
severity: warning
|
severity: warning
|
||||||
|
- name: CPU steal
|
||||||
|
description: CPU steal is > 10%
|
||||||
|
query: 'avg by(instance) (rate(node_cpu_seconds_total{mode="steal"}[5m])) * 100 > 10'
|
||||||
|
severity: warning
|
||||||
- name: Host context switching
|
- name: Host context switching
|
||||||
description: Context switching is growing on node (> 1000 / s)
|
description: Context switching is growing on node (> 1000 / s)
|
||||||
query: '(rate(node_context_switches_total[5m])) / (count without(cpu, mode) (node_cpu_seconds_total{mode="idle"})) > 1000'
|
query: '(rate(node_context_switches_total[5m])) / (count without(cpu, mode) (node_cpu_seconds_total{mode="idle"})) > 1000'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue