prometheus: filter out outtake quanta sensors

This commit is contained in:
jeltz 2023-11-04 13:49:52 +01:00
parent c2f2c03af6
commit 68f36ae048
Signed by: jeltz
GPG key ID: 800882B66C0C3326

View file

@ -55,9 +55,18 @@ prometheus__rules_quanta:
annotations: annotations:
Description: !unsafe "{{ $labels.shChasFanDescription }}" Description: !unsafe "{{ $labels.shChasFanDescription }}"
Status: !unsafe "{{ $labels.snChasFanOperStatus }}" Status: !unsafe "{{ $labels.snChasFanOperStatus }}"
- alert: QuantaTemp - alert: QuantaMissingIntakeTemp
expr: expr:
0.5 * snAgentTempValue > 45 count by (instance) (
snAgentTempValue unless
snAgentTempValue{snAgentTempSensorDescr=~".*Intake.*"}
) > 0
for: 0m
labels:
severity: critical
- alert: QuantaIntakeTemp
expr:
0.5 * snAgentTempValue{snAgentTempSensorDesc=~".*Intake.*"} > 45
for: 10m for: 10m
keep_firing_for: 30m keep_firing_for: 30m
labels: labels:
@ -65,9 +74,9 @@ prometheus__rules_quanta:
annotations: annotations:
Temperature: !unsafe "{{ $value }} °C" Temperature: !unsafe "{{ $value }} °C"
Description: !unsafe "{{ $labels.snAgentTempSensorDescr }}" Description: !unsafe "{{ $labels.snAgentTempSensorDescr }}"
- alert: QuantaTemp - alert: QuantaIntakeTemp
expr: expr:
0.5 * snAgentTempValue > 60 0.5 * snAgentTempValue{snAgentTempSensorDesc=~".*Intake.*"} > 60
for: 10m for: 10m
keep_firing_for: 30m keep_firing_for: 30m
labels: labels: