add configz.InstallHandler
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
This commit is contained in:
@@ -144,6 +144,7 @@ func Run(s *options.CMServer) error {
|
|||||||
mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
|
mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
|
||||||
mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
|
mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
|
||||||
}
|
}
|
||||||
|
configz.InstallHandler(mux)
|
||||||
mux.Handle("/metrics", prometheus.Handler())
|
mux.Handle("/metrics", prometheus.Handler())
|
||||||
|
|
||||||
server := &http.Server{
|
server := &http.Server{
|
||||||
|
Reference in New Issue
Block a user