fix: streaming metrics do not clear (#36701)

issue: #33285

Signed-off-by: chyezh <chyezh@outlook.com>
pull/36726/head
Zhen Ye 2024-10-09 17:51:20 +08:00 committed by GitHub
parent 130a923dec
commit efb10d3b86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ func (m *SegmentAssignMetrics) UpdateCollectionCount(cnt int) {
func (m *SegmentAssignMetrics) Close() {
metrics.WALSegmentAllocTotal.DeletePartialMatch(m.constLabel)
metrics.WALSegmentFlushedTotal.DeletePartialMatch(m.constLabel)
metrics.WALSegmentBytes.Delete(m.constLabel)
metrics.WALPartitionTotal.Delete(m.constLabel)
metrics.WALCollectionTotal.Delete(m.constLabel)
}