diff --git a/cookbooks/prometheus/files/etc/prometheus.d/alerts/node_exporter.yml b/cookbooks/prometheus/files/etc/prometheus.d/alerts/node_exporter.yml index 8b30d28..c12c79f 100644 --- a/cookbooks/prometheus/files/etc/prometheus.d/alerts/node_exporter.yml +++ b/cookbooks/prometheus/files/etc/prometheus.d/alerts/node_exporter.yml @@ -113,7 +113,7 @@ groups: # Alert threshold depends on nature of application. # Please read: https://github.com/samber/awesome-prometheus-alerts/issues/58 - alert: HostContextSwitching - expr: (rate(node_context_switches_total[5m])) / (count without(cpu, mode) (node_cpu_seconds_total{mode="idle"})) > 1000 + expr: (rate(node_context_switches_total[5m])) / (count without(cpu, mode) (node_cpu_seconds_total{mode="idle"})) > 4000 for: 5m labels: severity: warning