fix(monitoring): UsingInverterEnergyForTooLong only alerts when stuck
Changed from simple time-based (24h on inverter) to condition-based: only fires when on inverter AND battery charge <80% for 1h. This means normal daytime inverter usage won't trigger alerts — only fires when the grid is unavailable and battery is draining.
This commit is contained in:
parent
b5689afe6d
commit
fbdb57eb58
1 changed files with 4 additions and 4 deletions
|
|
@ -763,12 +763,12 @@ serverFiles:
|
||||||
annotations:
|
annotations:
|
||||||
summary: "Server power: {{ $value | printf \"%.0f\" }}W (threshold: 300W)"
|
summary: "Server power: {{ $value | printf \"%.0f\" }}W (threshold: 300W)"
|
||||||
- alert: UsingInverterEnergyForTooLong
|
- alert: UsingInverterEnergyForTooLong
|
||||||
expr: automatic_transfer_switch_power_mode > 0 # 1 = Inverter; 0 = Grid
|
expr: automatic_transfer_switch_power_mode > 0 and on() ups_upsEstimatedChargeRemaining < 80
|
||||||
for: 24h
|
for: 1h
|
||||||
labels:
|
labels:
|
||||||
severity: info
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
summary: "On inverter for >24h - check grid switchover"
|
summary: "On inverter with battery draining ({{ $value }}% charge) - may be stuck on inverter"
|
||||||
- alert: UPSAlarmsActive
|
- alert: UPSAlarmsActive
|
||||||
expr: ups_upsAlarmsPresent > 0
|
expr: ups_upsAlarmsPresent > 0
|
||||||
for: 5m
|
for: 5m
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue