Fix /metrics endpoint name (was /metrics.json).

This commit is contained in:
Julius Volz 2013-07-29 18:44:06 +02:00
parent 5d4f9f7e11
commit 669f5ef916
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ func (w WebService) ServeForever() error {
exp.Handle("/status", w.StatusHandler) exp.Handle("/status", w.StatusHandler)
exp.Handle("/api/", compressionHandler{handler: gorest.Handle()}) exp.Handle("/api/", compressionHandler{handler: gorest.Handle()})
exp.Handle("/metrics.json", prometheus.DefaultHandler) exp.Handle("/metrics", prometheus.DefaultHandler)
if *useLocalAssets { if *useLocalAssets {
exp.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("web/static")))) exp.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("web/static"))))
} else { } else {