mirror of https://github.com/milvus-io/milvus.git
fix: Load index metric use wrong time unit (#32935)
issue:#32899 This PR fix the wrong metric value of load index, which introduced by pr#32567, use wrong time unit for load index metrics Signed-off-by: Wei Liu <wei.liu@zilliz.com>pull/32956/head
parent
244d2c04f6
commit
25689859a1
|
@ -1026,7 +1026,7 @@ func (loader *segmentLoader) loadSealedSegment(ctx context.Context, loadInfo *qu
|
|||
return err
|
||||
}
|
||||
loadFieldsIndexSpan := tr.RecordSpan()
|
||||
metrics.QueryNodeLoadIndexLatency.WithLabelValues(fmt.Sprint(paramtable.GetNodeID())).Observe(float64(loadFieldsIndexSpan))
|
||||
metrics.QueryNodeLoadIndexLatency.WithLabelValues(fmt.Sprint(paramtable.GetNodeID())).Observe(float64(loadFieldsIndexSpan.Milliseconds()))
|
||||
|
||||
// 2. complement raw data for the scalar fields without raw data
|
||||
for fieldID, info := range indexedFieldInfos {
|
||||
|
|
Loading…
Reference in New Issue