未验证 提交 abc2adb1 编写于 作者: Z zhenshan.cao 提交者: GitHub

Add indexCountLabel for metric QueryNodeNumEntities (#21081)

Signed-off-by: Nzhenshan.cao <zhenshan.cao@zilliz.com>
Signed-off-by: Nzhenshan.cao <zhenshan.cao@zilliz.com>
上级 699b63fb
......@@ -323,6 +323,7 @@ var (
collectionIDLabelName,
partitionIDLabelName,
segmentStateLabelName,
indexCountLabelName,
})
// QueryNodeConsumeCounter counts the bytes QueryNode consumed from message storage.
......
......@@ -634,6 +634,7 @@ func (replica *metaReplica) addSegmentPrivate(segment *Segment) error {
fmt.Sprint(segment.collectionID),
fmt.Sprint(segment.partitionID),
segType.String(),
fmt.Sprint(segment.indexedFieldInfos.Len()),
).Add(float64(rowCount))
}
return nil
......@@ -742,6 +743,7 @@ func (replica *metaReplica) removeSegmentPrivate(segmentID UniqueID, segType seg
fmt.Sprint(segment.collectionID),
fmt.Sprint(segment.partitionID),
segType.String(),
fmt.Sprint(segment.indexedFieldInfos.Len()),
).Sub(float64(rowCount))
}
}
......
......@@ -713,6 +713,7 @@ func (s *Segment) segmentInsert(offset int64, entityIDs []UniqueID, timestamps [
fmt.Sprint(s.collectionID),
fmt.Sprint(s.partitionID),
s.segmentType.String(),
fmt.Sprint(0),
).Add(float64(numOfRow))
s.setRecentlyModified(true)
return nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册