X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c57272306ac65a1da51dbb84b3fec9ee3be846da..28326173066466bb20f54bad702b2885b64f925c:/cookbooks/prometheus/templates/default/alert_rules.yml.erb?ds=sidebyside diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 9522dbf6b..8c1aeee48 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -145,12 +145,12 @@ groups: annotations: error_rate: "{{ $value | humanizePercentage }}" - alert: fastly healthcheck failing - expr: count(fastly_healthcheck_status == 0) > 0 + expr: count(fastly_healthcheck_status == 0) by (service) > 0 for: 15m labels: alertgroup: fastly - alert: multiple fastly healthchecks failing - expr: count(fastly_healthcheck_status == 0) > 4 + expr: count(fastly_healthcheck_status == 0) by (service) > 4 for: 5m labels: alertgroup: fastly