X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e85f7cbf201686dac598d8b285585d9af468490d..ed524a3afc8f43c16510de915662632e3b186a88:/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 30a14a471..28a5b3113 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -115,7 +115,12 @@ groups: annotations: error_rate: "{{ $value | humanizePercentage }}" - alert: fastly healthcheck failing - expr: fastly_healthcheck_status == 0 + expr: count(fastly_healthcheck_status == 0) > 0 + for: 15m + labels: + alertgroup: fastly + - alert: fastly healthcheck failing + expr: count(fastly_healthcheck_status == 0) > 4 for: 5m labels: alertgroup: fastly @@ -447,7 +452,7 @@ groups: labels: alertgroup: "{{ $labels.instance }}" - alert: smart ssd wearout approaching - expr: smart_percentage_used >= 90 + expr: smart_percentage_used >= 80 for: 60m labels: alertgroup: "{{ $labels.instance }}"