[skip ci] Refine comments in metrics (#10511)

Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>
This commit is contained in:
edward.zeng 2021-10-23 18:15:12 +08:00 committed by GitHub
parent 5d9e4c8d3d
commit ad667beb9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,7 @@ var (
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
// for time tick // for time tick
// RootCoordInsertChannelTimeTick used to count the time tick num of insert channel in 24H // RootCoordInsertChannelTimeTick counts the time tick num of insert channel in 24H
RootCoordInsertChannelTimeTick = prometheus.NewGaugeVec( RootCoordInsertChannelTimeTick = prometheus.NewGaugeVec(
prometheus.GaugeOpts{ prometheus.GaugeOpts{
Namespace: milvusNamespace, Namespace: milvusNamespace,
@ -169,7 +169,7 @@ var (
Help: "Time tick of insert Channel in 24H", Help: "Time tick of insert Channel in 24H",
}, []string{"vchannel"}) }, []string{"vchannel"})
// RootCoordDDChannelTimeTick used to count the time tick num of dd channel in 24H // RootCoordDDChannelTimeTick counts the time tick num of dd channel in 24H
RootCoordDDChannelTimeTick = prometheus.NewGauge( RootCoordDDChannelTimeTick = prometheus.NewGauge(
prometheus.GaugeOpts{ prometheus.GaugeOpts{
Namespace: milvusNamespace, Namespace: milvusNamespace,
@ -179,7 +179,7 @@ var (
}) })
) )
//RegisterRootCoord register RootCoord metrics //RegisterRootCoord registers RootCoord metrics
func RegisterRootCoord() { func RegisterRootCoord() {
prometheus.MustRegister(RootCoordProxyLister) prometheus.MustRegister(RootCoordProxyLister)