Skip to content

Commit 1f0a145

Browse files
committed
debug "assuming pass"
Signed-off-by: Paige Patton <prubenda@redhat.com>
1 parent 2f4c2e6 commit 1f0a145

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

krkn/prometheus/collector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ def evaluate_slos(
6868

6969
passed = slo_passed(response)
7070
if passed is None:
71-
logging.warning("SLO '%s' query returned no data; excluding from score.", name)
71+
# Absence of data indicates the condition did not trigger; treat as pass.
72+
logging.debug("SLO '%s' query returned no data; assuming pass.", name)
73+
results[name] = True
7274
else:
7375
results[name] = passed
7476
except Exception as exc:

0 commit comments

Comments
 (0)