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:
zhagnlu 2024-11-24 17:26:33 +08:00 committed by GitHub
parent 1e76d2b9f1
commit 62af24c1a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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_;
}

View File

@ -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_;