mirror of https://github.com/milvus-io/milvus.git
feat: record the number of times milvus turns into force-deny-writing states (#34960)
/kind improvement fix: #34961 --------- Signed-off-by: longjiquan <jiquan.long@zilliz.com>pull/34956/head
parent
e2f40fc2a8
commit
b843c91bad
|
@ -1569,6 +1569,7 @@ func (q *QuotaCenter) recordMetrics() {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
metrics.RootCoordQuotaStates.WithLabelValues(errorCode.String(), name).Set(1.0)
|
metrics.RootCoordQuotaStates.WithLabelValues(errorCode.String(), name).Set(1.0)
|
||||||
|
metrics.RootCoordForceDenyWritingCounter.Inc()
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|
|
@ -170,6 +170,15 @@ var (
|
||||||
"name",
|
"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 reflects the ratio of rate limit.
|
||||||
RootCoordRateLimitRatio = prometheus.NewGaugeVec(
|
RootCoordRateLimitRatio = prometheus.NewGaugeVec(
|
||||||
prometheus.GaugeOpts{
|
prometheus.GaugeOpts{
|
||||||
|
@ -241,6 +250,7 @@ func RegisterRootCoord(registry *prometheus.Registry) {
|
||||||
registry.MustRegister(RootCoordNumOfRoles)
|
registry.MustRegister(RootCoordNumOfRoles)
|
||||||
registry.MustRegister(RootCoordTtDelay)
|
registry.MustRegister(RootCoordTtDelay)
|
||||||
registry.MustRegister(RootCoordQuotaStates)
|
registry.MustRegister(RootCoordQuotaStates)
|
||||||
|
registry.MustRegister(RootCoordForceDenyWritingCounter)
|
||||||
registry.MustRegister(RootCoordRateLimitRatio)
|
registry.MustRegister(RootCoordRateLimitRatio)
|
||||||
registry.MustRegister(RootCoordDDLReqLatencyInQueue)
|
registry.MustRegister(RootCoordDDLReqLatencyInQueue)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue