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