未验证 提交 854fb6aa 编写于 作者: J Jiquan Long 提交者: GitHub

Fix querycoord metrics (#20429)

Signed-off-by: Nlongjiquan <jiquan.long@zilliz.com>
Signed-off-by: Nlongjiquan <jiquan.long@zilliz.com>
上级 cc9dc0f0
......@@ -296,6 +296,12 @@ func (s *Server) initObserver() {
)
}
func (s *Server) afterStart() {
now := time.Now()
Params.QueryCoordCfg.CreatedTime = now
Params.QueryCoordCfg.UpdatedTime = now
}
func (s *Server) Start() error {
log.Info("start watcher...")
sessions, revision, err := s.session.GetSessions(typeutil.QueryNodeRole)
......@@ -348,6 +354,8 @@ func (s *Server) Start() error {
}
log.Info("QueryCoord started")
s.afterStart()
return nil
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册