]> git.openstreetmap.org Git - chef.git/commitdiff
Use correct metric for CPU pressure
authorTom Hughes <tom@compton.nu>
Sun, 21 Nov 2021 12:44:32 +0000 (12:44 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 21 Nov 2021 12:44:32 +0000 (12:44 +0000)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 9a9008ac263e05922760686ac6ac720ad32c48c2..dc616f7b201cd6857cfeb93b97b98b45c40c63ae 100644 (file)
@@ -25,7 +25,7 @@ groups:
   - name: cpu
     rules:
       - alert: cpu pressure
   - 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 }}"
         for: 15m
         labels:
           alertgroup: "{{ $labels.instance }}"