mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-23 01:47:17 +08:00
Add APC UPS & ZFS exporter (#331)
* add apcupsd_exporter rules * add zfs_exporter rules
This commit is contained in:
parent
7e53aa2edd
commit
7aeccf2874
1 changed files with 56 additions and 0 deletions
|
|
@ -2089,6 +2089,30 @@ groups:
|
||||||
query: 'node_zfs_zpool_state{state!="online"} > 0'
|
query: 'node_zfs_zpool_state{state!="online"} > 0'
|
||||||
severity: critical
|
severity: critical
|
||||||
for: 1m
|
for: 1m
|
||||||
|
- name: ZFS exporter
|
||||||
|
slug: zfs_exporter
|
||||||
|
doc_url: https://github.com/pdf/zfs_exporter
|
||||||
|
rules:
|
||||||
|
- name: ZFS pool out of space
|
||||||
|
description: Disk is almost full (< 10% left)
|
||||||
|
query: 'zfs_pool_free_bytes * 100 / zfs_pool_size_bytes < 10 and ON (instance, device, mountpoint) zfs_pool_readonly == 0'
|
||||||
|
severity: warning
|
||||||
|
- name: ZFS pool unhealthy
|
||||||
|
description: ZFS pool state is {{ $value }}. See comments for more information.
|
||||||
|
query: 'zfs_pool_health > 0'
|
||||||
|
severity: critical
|
||||||
|
comments: |
|
||||||
|
0: ONLINE
|
||||||
|
1: DEGRADED
|
||||||
|
2: FAULTED
|
||||||
|
3: OFFLINE
|
||||||
|
4: UNAVAIL
|
||||||
|
5: REMOVED
|
||||||
|
6: SUSPENDED
|
||||||
|
- name: ZFS collector failed
|
||||||
|
description: ZFS collector for {{ $labels.instance }} has failed to collect information
|
||||||
|
query: 'zfs_scrape_collector_success != 1'
|
||||||
|
severity: warning
|
||||||
|
|
||||||
- name: OpenEBS
|
- name: OpenEBS
|
||||||
exporters:
|
exporters:
|
||||||
|
|
@ -2362,3 +2386,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