提交 e57e602b 编写于 作者: L LiHui

change method name

Signed-off-by: NLiHui <andrewli@yunify.com>
上级 bc9fe7f6
......@@ -186,7 +186,7 @@ func monitorRequest(r *restful.Request, response *restful.Response, chain *restf
}
func (s *APIServer) installMetricsAPI() {
register()
registerMetrics()
metrics.Defaults.Install(s.container)
}
......
......@@ -35,7 +35,7 @@ var (
}
)
func register() {
func registerMetrics() {
for _, m := range metricsList {
metrics.MustRegister(m)
}
......
......@@ -17,9 +17,5 @@ var (
)
func init() {
Register()
}
func Register() {
metrics.MustRegister(appTemplateCreationCounter)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册