]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/alert_rules.yml.erb
Fix URL for Intel MAS CLI Tool
[chef.git] / cookbooks / prometheus / templates / default / alert_rules.yml.erb
index 0e834474c692123c1bb80f7a02c23f6754b9c99d..fd25f2523498188e9c0e0238805ab551d06e40ce 100644 (file)
@@ -82,6 +82,11 @@ groups:
           alertgroup: "{{ $labels.instance }}"
         annotations:
           voltage_volts: "{{ with printf \"ipmi_voltage_volts{instance='%s',id='%s'}\" $labels.instance $labels.id | query }}{{ . | first | value | humanize }}V{{end}}"
+      - alert: ipmi power alarm
+        expr: ipmi_power_state > 0 or ipmi_sensor_state{type=~"Power .*"} > 0
+        for: 5m
+        labels:
+          alertgroup: "{{ $labels.instance }}"
   - name: mdadm
     rules:
       - alert: mdadm array inactive