X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/bbbe7474976e33c5471f7ecdabd4cf2a44c25ee2..0c4c2dfa07939b515d41f8128c0b937ec6823cd1:/cookbooks/prometheus/templates/default/alert_rules.yml.erb diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index b78bbaddd..dfd885bb8 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -331,6 +331,15 @@ groups: alertgroup: "{{ $labels.site }}" annotations: power: "{{ $value }} dBm" + - name: load + rules: + - alert: load average + expr: sum(node_load5) by (instance) / count(node_cpu_frequency_max_hertz) by (instance) > 2 + for: 5m + labels: + alertgroup: "{{ $labels.instance }}" + annotations: + load: "{{ $value | humanizePercentage }}" - name: mail rules: - alert: exim down