From 292d19fbfd978e2f8efff396df619077f6235c3d Mon Sep 17 00:00:00 2001 From: fuwx Date: Mon, 7 Apr 2025 13:58:56 +0800 Subject: [PATCH] fix: thread polaris metrics --- .../providers/apo_select/tools/thread_polaris_p90.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/tools/builtin_tool/providers/apo_select/tools/thread_polaris_p90.py b/api/core/tools/builtin_tool/providers/apo_select/tools/thread_polaris_p90.py index 61853bd623..f11e52f693 100644 --- a/api/core/tools/builtin_tool/providers/apo_select/tools/thread_polaris_p90.py +++ b/api/core/tools/builtin_tool/providers/apo_select/tools/thread_polaris_p90.py @@ -47,7 +47,7 @@ class ThreadPolarisP90(BuiltinTool): return json.dumps(stats) def get_metrics(self, type: str, pod: str, start: int, end: int) -> dict: - query = 'increase(originx_thread_polaris_nanoseconds_sum{pod="' + pod + '", type="cpu"}[1m])' + query = 'increase(originx_thread_polaris_nanoseconds_sum{pod="' + pod + '", type="' + type + '"}[1m])' step = '10m' hour = 3600 * 1000