From: Tom Hughes Date: Wed, 20 Jul 2022 20:07:03 +0000 (+0100) Subject: Fix syntax error in alert rule X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/f4381b004f16586fe15a69d78b55275bb58516b1?ds=sidebyside Fix syntax error in alert rule --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 4b5a0c60f..0d045af71 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -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 }}"