From 669f5ef916ead2309b2ed43f7e3d81abbf8d0104 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Mon, 29 Jul 2013 18:44:06 +0200 Subject: [PATCH] Fix /metrics endpoint name (was /metrics.json). --- web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/web.go b/web/web.go index f2f919de..79abc7dc 100644 --- a/web/web.go +++ b/web/web.go @@ -63,7 +63,7 @@ func (w WebService) ServeForever() error { exp.Handle("/status", w.StatusHandler) exp.Handle("/api/", compressionHandler{handler: gorest.Handle()}) - exp.Handle("/metrics.json", prometheus.DefaultHandler) + exp.Handle("/metrics", prometheus.DefaultHandler) if *useLocalAssets { exp.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("web/static")))) } else {