mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-22 17:37:19 +08:00
Publish
This commit is contained in:
parent
7aeccf2874
commit
50b171a491
2 changed files with 91 additions and 0 deletions
59
dist/rules/apc-ups/apcupsd_exporter.yml
vendored
Normal file
59
dist/rules/apc-ups/apcupsd_exporter.yml
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
groups:
|
||||
|
||||
- name: Apcupsd_exporter
|
||||
|
||||
rules:
|
||||
|
||||
- alert: ApcUpsBatteryNearlyEmpty
|
||||
expr: 'apcupsd_battery_charge_percent < 10'
|
||||
for: 0m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: APC UPS Battery nearly empty (instance {{ $labels.instance }})
|
||||
description: "Battery is almost empty (< 10% left)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
|
||||
- alert: ApcUpsLessThan15MinutesOfBatteryTimeRemaining
|
||||
expr: 'apcupsd_battery_time_left_seconds < 900'
|
||||
for: 0m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: APC UPS Less than 15 Minutes of battery time remaining (instance {{ $labels.instance }})
|
||||
description: "Battery is almost empty (< 15 Minutes remaining)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
|
||||
- alert: ApcUpsAcInputOutage
|
||||
expr: 'apcupsd_battery_time_on_seconds > 0'
|
||||
for: 0m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: APC UPS AC input outage (instance {{ $labels.instance }})
|
||||
description: "UPS now running on battery (since {{$value | humanizeDuration}})\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
|
||||
- alert: ApcUpsLowBatteryVoltage
|
||||
expr: '(apcupsd_battery_volts / apcupsd_battery_nominal_volts) < 0.95'
|
||||
for: 0m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: APC UPS low battery voltage (instance {{ $labels.instance }})
|
||||
description: "Battery voltage is lower than nominal (< 95%)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
|
||||
- alert: ApcUpsHighTemperature
|
||||
expr: 'apcupsd_internal_temperature_celsius >= 40'
|
||||
for: 2m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: APC UPS high temperature (instance {{ $labels.instance }})
|
||||
description: "Internal temperature is high ({{$value}}°C)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
|
||||
- alert: ApcUpsHighLoad
|
||||
expr: 'apcupsd_ups_load_percent > 80'
|
||||
for: 0m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: APC UPS high load (instance {{ $labels.instance }})
|
||||
description: "UPS load is > 80%\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
32
dist/rules/zfs/zfs_exporter.yml
vendored
Normal file
32
dist/rules/zfs/zfs_exporter.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
groups:
|
||||
|
||||
- name: Zfs_exporter
|
||||
|
||||
rules:
|
||||
|
||||
- alert: ZfsPoolOutOfSpace
|
||||
expr: 'zfs_pool_free_bytes * 100 / zfs_pool_size_bytes < 10 and ON (instance, device, mountpoint) zfs_pool_readonly == 0'
|
||||
for: 0m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: ZFS pool out of space (instance {{ $labels.instance }})
|
||||
description: "Disk is almost full (< 10% left)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
|
||||
- alert: ZfsPoolUnhealthy
|
||||
expr: 'zfs_pool_health > 0'
|
||||
for: 0m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: ZFS pool unhealthy (instance {{ $labels.instance }})
|
||||
description: "ZFS pool state is {{ $value }}. See comments for more information.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
|
||||
- alert: ZfsCollectorFailed
|
||||
expr: 'zfs_scrape_collector_success != 1'
|
||||
for: 0m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: ZFS collector failed (instance {{ $labels.instance }})
|
||||
description: "ZFS collector for {{ $labels.instance }} has failed to collect information\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||
Loading…
Reference in a new issue