From fd41589100bd2283509ad1566d16c6f930479f6f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 21 Nov 2021 12:44:32 +0000 Subject: [PATCH] Use correct metric for CPU pressure --- cookbooks/prometheus/templates/default/alert_rules.yml.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 9a9008ac2..dc616f7b2 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -25,7 +25,7 @@ groups: - name: cpu rules: - alert: cpu pressure - expr: rate(node_pressure_memory_waiting_seconds_total[5m]) > 0.3 + expr: rate(node_pressure_cpu_waiting_seconds_total[5m]) > 0.3 for: 15m labels: alertgroup: "{{ $labels.instance }}" -- 2.39.5