mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 03:17:07 +08:00
Update query format in rules.yml
This commit is contained in:
parent
05cd0ab771
commit
08b5d6e3fc
1 changed files with 1 additions and 4 deletions
|
|
@ -242,10 +242,7 @@ groups:
|
|||
for: 5m
|
||||
- name: Host context switching high
|
||||
description: Context switching is growing on the node (twice the daily average during the last 15m)
|
||||
query: |
|
||||
(rate(node_context_switches_total[15m])/count without(mode,cpu) (node_cpu_seconds_total{mode="idle"}))
|
||||
/
|
||||
(rate(node_context_switches_total[1d])/count without(mode,cpu) (node_cpu_seconds_total{mode="idle"})) > 2
|
||||
query: '(rate(node_context_switches_total[15m])/count without(mode,cpu) (node_cpu_seconds_total{mode="idle"})) / (rate(node_context_switches_total[1d])/count without(mode,cpu) (node_cpu_seconds_total{mode="idle"})) > 2'
|
||||
severity: warning
|
||||
comments: |
|
||||
x2 context switches is an arbitrary number.
|
||||
|
|
|
|||
Loading…
Reference in a new issue