mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Make binlog size metric to collect healthy binlog only (#24557)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
parent
1c64d0618c
commit
19164ea753
@ -264,9 +264,9 @@ func (m *meta) GetCollectionBinlogSize() (int64, map[UniqueID]int64) {
|
||||
if isSegmentHealthy(segment) {
|
||||
total += segmentSize
|
||||
collectionBinlogSize[segment.GetCollectionID()] += segmentSize
|
||||
metrics.DataCoordStoredBinlogSize.WithLabelValues(
|
||||
fmt.Sprint(segment.GetCollectionID()), fmt.Sprint(segment.GetID())).Set(float64(segmentSize))
|
||||
}
|
||||
metrics.DataCoordStoredBinlogSize.WithLabelValues(
|
||||
fmt.Sprint(segment.GetCollectionID()), fmt.Sprint(segment.GetID())).Set(float64(segmentSize))
|
||||
}
|
||||
return total, collectionBinlogSize
|
||||
}
|
||||
|
||||
@ -95,7 +95,7 @@ var (
|
||||
Namespace: milvusNamespace,
|
||||
Subsystem: typeutil.DataCoordRole,
|
||||
Name: "stored_binlog_size",
|
||||
Help: "binlog size of segments",
|
||||
Help: "binlog size of healthy segments",
|
||||
}, []string{
|
||||
collectionIDLabelName,
|
||||
segmentIDLabelName,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user