prometheus: filter out outtake quanta sensors
This commit is contained in:
parent
c2f2c03af6
commit
68f36ae048
1 changed files with 13 additions and 4 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue