route: force metrics for readiness/postgres
This commit is contained in:
parent
ca717253f1
commit
702ab87109
@ -219,6 +219,8 @@ class AnswerEngine:
|
|||||||
_debug_log("route_parsed", {"classify": classify, "normalized": normalized})
|
_debug_log("route_parsed", {"classify": classify, "normalized": normalized})
|
||||||
lowered_question = f"{question} {normalized}".lower()
|
lowered_question = f"{question} {normalized}".lower()
|
||||||
force_metric = bool(re.search(r"\bhow many\b|\bcount\b|\btotal\b", lowered_question))
|
force_metric = bool(re.search(r"\bhow many\b|\bcount\b|\btotal\b", lowered_question))
|
||||||
|
if any(term in lowered_question for term in ("postgres", "connections", "pvc", "ready")):
|
||||||
|
force_metric = True
|
||||||
cluster_terms = (
|
cluster_terms = (
|
||||||
"atlas",
|
"atlas",
|
||||||
"cluster",
|
"cluster",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user