From f4381b004f16586fe15a69d78b55275bb58516b1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 20 Jul 2022 21:07:03 +0100 Subject: [PATCH] Fix syntax error in alert rule --- 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 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 }}" -- 2.43.2