mirror of https://github.com/milvus-io/milvus.git
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
parent
0ad55c6c44
commit
766f47c9ca
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue