mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
/kind improvement fix: #34961 pr: #34960 --------- Signed-off-by: longjiquan <jiquan.long@zilliz.com>
This commit is contained in:
parent
6283fd0b46
commit
2822d8729c
@ -1569,6 +1569,7 @@ func (q *QuotaCenter) recordMetrics() {
|
||||
return false
|
||||
}
|
||||
metrics.RootCoordQuotaStates.WithLabelValues(errorCode.String(), name).Set(1.0)
|
||||
metrics.RootCoordForceDenyWritingCounter.Inc()
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
@ -170,6 +170,15 @@ var (
|
||||
"name",
|
||||
})
|
||||
|
||||
// RootCoordForceDenyWritingCounter records the number of times that milvus turns into force-deny-writing states.
|
||||
RootCoordForceDenyWritingCounter = prometheus.NewCounter(
|
||||
prometheus.CounterOpts{
|
||||
Namespace: milvusNamespace,
|
||||
Subsystem: typeutil.RootCoordRole,
|
||||
Name: "force_deny_writing_counter",
|
||||
Help: "The number of times milvus turns into force-deny-writing states",
|
||||
})
|
||||
|
||||
// RootCoordRateLimitRatio reflects the ratio of rate limit.
|
||||
RootCoordRateLimitRatio = prometheus.NewGaugeVec(
|
||||
prometheus.GaugeOpts{
|
||||
@ -241,6 +250,7 @@ func RegisterRootCoord(registry *prometheus.Registry) {
|
||||
registry.MustRegister(RootCoordNumOfRoles)
|
||||
registry.MustRegister(RootCoordTtDelay)
|
||||
registry.MustRegister(RootCoordQuotaStates)
|
||||
registry.MustRegister(RootCoordForceDenyWritingCounter)
|
||||
registry.MustRegister(RootCoordRateLimitRatio)
|
||||
registry.MustRegister(RootCoordDDLReqLatencyInQueue)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user