feat: include class in hottest node facts
This commit is contained in:
parent
78023ca956
commit
d8dc4379a9
@ -1189,7 +1189,12 @@ def _expand_hottest_line(line: str) -> list[str]:
|
|||||||
continue
|
continue
|
||||||
node = match.group("node").strip()
|
node = match.group("node").strip()
|
||||||
value = match.group("value").strip()
|
value = match.group("value").strip()
|
||||||
expanded.append(f"hottest_{metric}_node: {node} ({value})")
|
class_match = re.search(r"\[(?P<class>[^\]]+)\]", 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
|
return expanded
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user