]> git.openstreetmap.org Git - chef.git/commitdiff
Fix syntax error in alert rule
authorTom Hughes <tom@compton.nu>
Wed, 20 Jul 2022 20:07:03 +0000 (21:07 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 20 Jul 2022 20:07:03 +0000 (21:07 +0100)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 4b5a0c60f2e14517c5d8b681001d01e382aa2d57..0d045af715588109abffb78b141c7c5ed721e477 100644 (file)
@@ -53,7 +53,7 @@ groups:
         annotations:
           busy_workers: "{{ $value | humanizePercentage }}"
       - alert: apache low request rate
-        expr: rate(apache_accesses_total[$__rate_interval]) / rate(apache_accesses_total[$__rate_interval] offset 1w) < 0.25 and rate(apache_accesses_total[1h] offset 1w) > 2
+        expr: rate(apache_accesses_total[5m]) / rate(apache_accesses_total[1h] offset 1w) < 0.25 and rate(apache_accesses_total[1h] offset 1w) > 2
         for: 15m
         labels:
           alertgroup: "{{ $labels.instance }}"