add apcupsd_exporter rules

This commit is contained in:
Yannick Markus 2022-12-23 11:08:54 +01:00
parent 3c787b342e
commit c70a35595f

View file

@ -2353,3 +2353,35 @@ groups:
* FAILURE 2 false - The build had a fatal error. * FAILURE 2 false - The build had a fatal error.
* NOT_BUILT 3 false - The module was not built. * NOT_BUILT 3 false - The module was not built.
* ABORTED 4 false - The build was manually aborted. * ABORTED 4 false - The build was manually aborted.
- name: APC UPS
exporters:
- name: mdlayher/apcupsd_exporter
slug: apcupsd_exporter
doc_url: https://github.com/mdlayher/apcupsd_exporter
rules:
- name: APC UPS Battery nearly empty
description: Battery is almost empty (< 10% left)
query: 'apcupsd_battery_charge_percent < 10'
severity: critical
- name: APC UPS Less than 15 Minutes of battery time remaining
description: Battery is almost empty (< 15 Minutes remaining)
query: 'apcupsd_battery_time_left_seconds < 900'
severity: critical
- name: APC UPS AC input outage
description: UPS now running on battery (since {{$value | humanizeDuration}})
query: 'apcupsd_battery_time_on_seconds > 0'
severity: warning
- name: APC UPS low battery voltage
description: Battery voltage is lower than nominal (< 95%)
query: '(apcupsd_battery_volts / apcupsd_battery_nominal_volts) < 0.95'
severity: warning
- name: APC UPS high temperature
description: Internal temperature is high ({{$value}}°C)
query: 'apcupsd_internal_temperature_celsius >= 40'
severity: warning
for: 2m
- name: APC UPS high load
description: UPS load is > 80%
query: 'apcupsd_ups_load_percent > 80'
severity: warning