From 62af24c1a1981eeca98f6a156fcf79e2c597a04f Mon Sep 17 00:00:00 2001 From: zhagnlu <1542303831@qq.com> Date: Sun, 24 Nov 2024 17:26:33 +0800 Subject: [PATCH] fix: change search latency metric from us unit to ms unit (#37806) #37805 Signed-off-by: luzhang Co-authored-by: luzhang --- internal/core/src/exec/operator/FilterBitsNode.cpp | 2 +- internal/core/src/exec/operator/GroupByNode.cpp | 2 +- internal/core/src/exec/operator/VectorSearchNode.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/core/src/exec/operator/FilterBitsNode.cpp b/internal/core/src/exec/operator/FilterBitsNode.cpp index 3bf6d03968..72148e347c 100644 --- a/internal/core/src/exec/operator/FilterBitsNode.cpp +++ b/internal/core/src/exec/operator/FilterBitsNode.cpp @@ -107,7 +107,7 @@ PhyFilterBitsNode::GetOutput() { double scalar_cost = std::chrono::duration(scalar_end - scalar_start) .count(); - monitor::internal_core_search_latency_scalar.Observe(scalar_cost); + monitor::internal_core_search_latency_scalar.Observe(scalar_cost / 1000); return std::make_shared(col_res); } diff --git a/internal/core/src/exec/operator/GroupByNode.cpp b/internal/core/src/exec/operator/GroupByNode.cpp index c461d54bf6..bd13eab202 100644 --- a/internal/core/src/exec/operator/GroupByNode.cpp +++ b/internal/core/src/exec/operator/GroupByNode.cpp @@ -81,7 +81,7 @@ PhyGroupByNode::GetOutput() { double vector_cost = std::chrono::duration(vector_end - vector_start) .count(); - monitor::internal_core_search_latency_groupby.Observe(vector_cost); + monitor::internal_core_search_latency_groupby.Observe(vector_cost / 1000); return input_; } diff --git a/internal/core/src/exec/operator/VectorSearchNode.cpp b/internal/core/src/exec/operator/VectorSearchNode.cpp index 57aa0999c0..df7a550f6c 100644 --- a/internal/core/src/exec/operator/VectorSearchNode.cpp +++ b/internal/core/src/exec/operator/VectorSearchNode.cpp @@ -93,7 +93,7 @@ PhyVectorSearchNode::GetOutput() { double vector_cost = std::chrono::duration(vector_end - vector_start) .count(); - monitor::internal_core_search_latency_vector.Observe(vector_cost); + monitor::internal_core_search_latency_vector.Observe(vector_cost / 1000); // for now, vector search store result in query_context // this node interface just return bitset return input_;