Use a dynamic interval for UPS output voltage alerts
continuous-integration/drone/push Build is passing Details

This commit is contained in:
jeltz 2021-04-02 13:57:34 +02:00
parent 83f5b35e59
commit 06f101527d
1 changed files with 3 additions and 1 deletions

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