Use a dynamic interval for UPS output voltage alerts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
jeltz 2021-04-02 13:57:34 +02:00
parent 83f5b35e59
commit 06f101527d

View file

@ -132,7 +132,9 @@ groups:
Tension d'entrée de {{ raw('$value') }}V
- alert: UpsWrongOutputVoltage
expr: (upsOutputVoltage < 220) or (upsOutputVoltage > 240)
expr: >-
abs(upsInputVoltage - avg_over_time(upsOutputVoltage[1d]))
< 3 * stddev_over_time(upsOutputVoltage[1d])
for: 10m
labels:
severity: warning