diff --git a/web/web.go b/web/web.go index 76b38e8cb4..83f025057e 100644 --- a/web/web.go +++ b/web/web.go @@ -34,14 +34,13 @@ var ( func StartServing(appState *appstate.ApplicationState) { gorest.RegisterService(api.NewMetricsService(appState)) - exporter := registry.DefaultRegistry.YieldExporter() http.Handle("/", &StatusHandler{appState: appState}) http.HandleFunc("/graph", graphHandler) http.HandleFunc("/console", consoleHandler) http.Handle("/api/", gorest.Handle()) - http.Handle("/metrics.json", exporter) + http.Handle("/metrics.json", registry.DefaultRegistry.Handler()) if *useLocalAssets { http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("web/static")))) } else {