mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 19:37:27 +08:00
add apcupsd_exporter rules
This commit is contained in:
parent
3c787b342e
commit
c70a35595f
1 changed files with 32 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue