mirror of https://github.com/milvus-io/milvus.git
fix: reset the RootCoordQuotaStates metric before recording this metric (#33553)
- issue: #33539 Signed-off-by: SimFG <bang.fu@zilliz.com>pull/33570/head
parent
d0a0eac0a4
commit
44d7e03e56
|
@ -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