From d1e7f5bc4bf69c18b7d2230a709bf7ba3be5b8e2 Mon Sep 17 00:00:00 2001 From: "Matt T. Proud" Date: Wed, 13 Feb 2013 09:46:41 -0800 Subject: [PATCH] The Prometheus Go client has a new handler API. --- web/web.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/web.go b/web/web.go index b26f7e71b..021391fbe 100644 --- a/web/web.go +++ b/web/web.go @@ -30,10 +30,9 @@ var ( func StartServing(persistence metric.MetricPersistence) { gorest.RegisterService(api.NewMetricsService(persistence)) - exporter := registry.DefaultRegistry.YieldExporter() http.Handle("/", gorest.Handle()) - http.Handle("/metrics.json", exporter) + http.Handle("/metrics.json", registry.DefaultHandler) http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("web/static")))) go http.ListenAndServe(*listenAddress, nil)