fix group nq metrics (#24918)

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
pull/24933/head
wei liu 2023-06-15 19:50:39 +08:00 committed by GitHub
parent 4d8d34e370
commit 75adf1df98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -238,8 +238,8 @@ func (t *SearchTask) Done(err error) {
collector.Counter.Dec(metricsinfo.ExecuteQueueType, 1)
if len(t.others) > 0 {
metrics.QueryNodeSearchGroupSize.WithLabelValues(fmt.Sprint(paramtable.GetNodeID())).Observe(float64(len(t.others) + 1))
metrics.QueryNodeSearchGroupNQ.WithLabelValues(fmt.Sprint(paramtable.GetNodeID())).Observe(float64(t.originNqs[0]))
metrics.QueryNodeSearchGroupTopK.WithLabelValues(fmt.Sprint(paramtable.GetNodeID())).Observe(float64(t.originTopks[0]))
metrics.QueryNodeSearchGroupNQ.WithLabelValues(fmt.Sprint(paramtable.GetNodeID())).Observe(float64(t.nq))
metrics.QueryNodeSearchGroupTopK.WithLabelValues(fmt.Sprint(paramtable.GetNodeID())).Observe(float64(t.topk))
}
select {
case t.notifier <- err: