From 3b09f0a74fadf7689613da5e32f0e8038f152db7 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Mon, 28 Sep 2020 00:56:00 +0900 Subject: [PATCH] Change threashold from 100 to 4000. --- .../prometheus/files/etc/prometheus.d/alerts/node_exporter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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