add alert for ups low battery remaining [ci skip]

This commit is contained in:
Viktor Barzin 2025-03-02 20:48:07 +00:00
parent 82cf591a20
commit f7eff3cb74
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 14 additions and 0 deletions

View file

@ -165,6 +165,20 @@ serverFiles:
severity: page
annotations:
summary: "Low input voltage - {{ $value }}"
- alert: OnBattery
expr: ups_upsSecondsOnBattery > 0
for: 30m
labels:
severity: critical
annotations:
summary: "UPS on battery for {{ $value }} seconds"
- alert: LowUPBattery
expr: ups_upsEstimatedMinutesRemaining < 25
for: 1m
labels:
severity: critical
annotations:
summary: "UPS battery running out - {{ $value }} minutes remaining"
- alert: NodeDown
expr: (up{job="kubernetes-nodes"} or on() vector(0)) == 0
for: 1m

Binary file not shown.