mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Fix redirect path
This commit is contained in:
parent
d7b21f2fdb
commit
896928ad00
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue