We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 856715c commit eddd9f4Copy full SHA for eddd9f4
utilities/monitoring.py
@@ -82,7 +82,7 @@ def validate_metrics_field(
82
metrics_query=metrics_query,
83
):
84
if greater_than:
85
- if float(sample) >= float(expected_value):
+ if sample is not None and float(sample) >= float(expected_value):
86
LOGGER.info(f"Metric field {sample} is greater than or equal to expected value {expected_value}!")
87
return
88
else:
0 commit comments