mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 10:28:41 +08:00
fix: change search latency metric from us unit to ms unit (#37806)
#37805 Signed-off-by: luzhang <luzhang@zilliz.com> Co-authored-by: luzhang <luzhang@zilliz.com>
This commit is contained in:
parent
1e76d2b9f1
commit
62af24c1a1
@ -107,7 +107,7 @@ PhyFilterBitsNode::GetOutput() {
|
||||
double scalar_cost =
|
||||
std::chrono::duration<double, std::micro>(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<RowVector>(col_res);
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ PhyGroupByNode::GetOutput() {
|
||||
double vector_cost =
|
||||
std::chrono::duration<double, std::micro>(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_;
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ PhyVectorSearchNode::GetOutput() {
|
||||
double vector_cost =
|
||||
std::chrono::duration<double, std::micro>(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_;
|
||||
|
Loading…
Reference in New Issue
Block a user