Fix /metrics endpoint name (was /metrics.json).
This commit is contained in:
parent
5d4f9f7e11
commit
669f5ef916
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue