Fix redirect path

This commit is contained in:
Fabian Reinartz 2015-09-12 09:02:34 +02:00
parent d7b21f2fdb
commit 896928ad00

View File

@ -159,7 +159,7 @@ func New(st local.Storage, qe *promql.Engine, rm *rules.Manager, status *Prometh
instrh := prometheus.InstrumentHandler
router.Get("/", func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/", http.StatusFound)
http.Redirect(w, r, "/graph", http.StatusFound)
})
router.Get("/graph", instrf("graph", h.graph))