fix: [2.4] reset the RootCoordQuotaStates metric before recording this metric (#33601)

- issue: #33539
- pr: #33553

Signed-off-by: SimFG <bang.fu@zilliz.com>
pull/33597/head^2
SimFG 2024-06-04 20:17:51 +08:00 committed by GitHub
parent 0ad55c6c44
commit 766f47c9ca
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 {