diff --git a/atlasbot/engine/answerer.py b/atlasbot/engine/answerer.py index bfeef95..9e87ca2 100644 --- a/atlasbot/engine/answerer.py +++ b/atlasbot/engine/answerer.py @@ -1189,7 +1189,12 @@ def _expand_hottest_line(line: str) -> list[str]: continue node = match.group("node").strip() value = match.group("value").strip() - expanded.append(f"hottest_{metric}_node: {node} ({value})") + class_match = re.search(r"\[(?P[^\]]+)\]", rest) + node_class = class_match.group("class").strip() if class_match else "" + if node_class: + expanded.append(f"hottest_{metric}_node: {node} [{node_class}] ({value})") + else: + expanded.append(f"hottest_{metric}_node: {node} ({value})") return expanded