From 63323f82a355cf8010c8ac9e9c4dd2808e78c5d9 Mon Sep 17 00:00:00 2001 From: Akash Chandra Date: Fri, 3 Jan 2025 18:18:26 +0530 Subject: [PATCH] fix: move benchmark-fabric to non namespace level - Refactored the logic --- lib/live_cluster/client/node.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/live_cluster/client/node.py b/lib/live_cluster/client/node.py index 19de9fc2..46f2abe4 100644 --- a/lib/live_cluster/client/node.py +++ b/lib/live_cluster/client/node.py @@ -2073,13 +2073,15 @@ async def info_latencies( "benchmarks-udf", "benchmarks-udf-sub", "benchmarks-batch-sub", - "benchmarks-fabric" ] cmd_latencies += [ - "latencies:hist=%s" % (optional) if optional == "benchmarks-fabric" else "latencies:hist={%s}-%s" % (ns, optional) + "latencies:hist={%s}-%s" % (ns, optional) for ns in namespaces for optional in micro_benchmarks ] + + # TOOLS-2984: benchmarks-fabric is not at namespace-level + cmd_latencies.append("latencies:hist=benchmarks-fabric") hist_info = [] for cmd in cmd_latencies: