mirror of https://github.com/milvus-io/milvus.git
Add indexCountLabel for metric QueryNodeNumEntities (#21081)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com> Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>pull/21134/head
parent
699b63fb42
commit
abc2adb1f8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue