Fix metric with wrong label (#21108)

/kind improvement

Signed-off-by: Yuchen Gao <yuchen.gao@zilliz.com>

Signed-off-by: Yuchen Gao <yuchen.gao@zilliz.com>
This commit is contained in:
Ten Thousand Leaves 2022-12-10 10:55:20 +08:00 committed by GitHub
parent d326c385bb
commit 699b63fb42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -633,7 +633,7 @@ func (replica *metaReplica) addSegmentPrivate(segment *Segment) error {
fmt.Sprint(paramtable.GetNodeID()),
fmt.Sprint(segment.collectionID),
fmt.Sprint(segment.partitionID),
string(segType),
segType.String(),
).Add(float64(rowCount))
}
return nil
@ -741,7 +741,7 @@ func (replica *metaReplica) removeSegmentPrivate(segmentID UniqueID, segType seg
fmt.Sprint(paramtable.GetNodeID()),
fmt.Sprint(segment.collectionID),
fmt.Sprint(segment.partitionID),
string(segType),
segType.String(),
).Sub(float64(rowCount))
}
}