mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-06 22:27:17 +02:00
Merge "Fix console handler."
This commit is contained in:
commit
443fd93536
@ -65,7 +65,7 @@ func (w WebService) ServeForever() error {
|
|||||||
"/alerts", w.AlertsHandler,
|
"/alerts", w.AlertsHandler,
|
||||||
))
|
))
|
||||||
http.Handle("/consoles/", prometheus.InstrumentHandler(
|
http.Handle("/consoles/", prometheus.InstrumentHandler(
|
||||||
"/consoles/", http.StripPrefix("/static/", http.FileServer(http.Dir("web/static"))),
|
"/consoles/", http.StripPrefix("/consoles/", w.ConsolesHandler),
|
||||||
))
|
))
|
||||||
http.Handle("/graph", prometheus.InstrumentHandler(
|
http.Handle("/graph", prometheus.InstrumentHandler(
|
||||||
"/graph", http.HandlerFunc(graphHandler),
|
"/graph", http.HandlerFunc(graphHandler),
|
||||||
|
Loading…
Reference in New Issue
Block a user