code: func newMetricsHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration) http.Handler {
  	pathRecorderMux := mux.NewPathRecorderMux("kube-scheduler")
  	installMetricHandler(pathRecorderMux)
  	if config.EnableProfiling {
  		routes.Profiling{}.Install(pathRecorderMux)
  		if config.EnableContentionProfiling {
  			goruntime.SetBlockProfileRate(1)
  		}
  	}
  	return pathRecorderMux
  }
docs: // newMetricsHandler builds a metrics server from the config.