mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix redirect path
This commit is contained in:
parent
c62ca1dadf
commit
9655d22ff7
|
@ -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