Host context switching high warning
>>>
(
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
The rule computes the rate of context switches per CPU (using idle CPU time as a proxy for CPU count) over the last 15 minutes and divides it by the same metric averaged over the past day; if the recent value is more than twice the daily average, the alert fires, indicating a sudden spike in context‑switch activity on the node.
Exporters Used
Related Alerts
Host CPU high iowait
Host CPU is underutilized
Host CPU steal noisy neighbor
Host EDAC Correctable Errors detected
Host EDAC Uncorrectable Errors detected
Host Memory is underutilized
Host Network Bond Degraded
Host Network Receive Errors
Host Network Transmit Errors
Host OOM kill detected
Host clock not synchronising
Host clock skew
Host conntrack limit
Host disk may fill in 24 hours
Host filesystem device error
Host high CPU load
Host inodes may fill in 24 hours
Host kernel version deviations
Host memory under memory pressure
Host node overtemperature alarm
Host out of disk space
Host out of inodes
Host out of memory
Host physical component too hot
Host software RAID disk failure
Host software RAID insufficient drives
Host swap is filling up
Host systemd service crashed
Host unusual disk IO
Host unusual disk read latency
Host unusual disk read rate
Host unusual disk write latency
Host unusual network throughput in
Host unusual network throughput out
NodeClockNotSynchronising
NodeClockSkewDetected
NodeFilesystemAlmostOutOfFiles
NodeFilesystemAlmostOutOfFiles
NodeFilesystemAlmostOutOfSpace
NodeFilesystemAlmostOutOfSpace
NodeFilesystemFilesFillingUp
NodeFilesystemFilesFillingUp
NodeFilesystemSpaceFillingUp
NodeFilesystemSpaceFillingUp
NodeHighNumberConntrackEntriesUsed
NodeNetworkReceiveErrs
NodeNetworkTransmitErrs
NodeRAIDDegraded
NodeRAIDDiskFailure
NodeTextFileCollectorScrapeError
ZFS offline pool