From: Tom Hughes Date: Sun, 21 Nov 2021 12:44:32 +0000 (+0000) Subject: Use correct metric for CPU pressure X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/fd41589100bd2283509ad1566d16c6f930479f6f Use correct metric for CPU pressure --- 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 }}"