fix: reset the RootCoordQuotaStates metric before recording this metric (#33553)

- issue: #33539

Signed-off-by: SimFG <bang.fu@zilliz.com>
pull/33570/head
SimFG 2024-06-03 21:09:47 +08:00 committed by GitHub
parent d0a0eac0a4
commit 44d7e03e56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1487,6 +1487,7 @@ func (q *QuotaCenter) sendRatesToProxy() error {
// recordMetrics records metrics of quota states.
func (q *QuotaCenter) recordMetrics() {
metrics.RootCoordQuotaStates.Reset()
dbIDs := make(map[int64]string, q.dbs.Len())
collectionIDs := make(map[int64]string, q.collections.Len())
q.dbs.Range(func(name string, id int64) bool {