added prometheus route
Dieser Commit ist enthalten in:
Ursprung
d90baca788
Commit
57e252ce2b
|
@ -5,6 +5,7 @@ import (
|
|||
|
||||
"github.com/elazarl/go-bindata-assetfs"
|
||||
"github.com/gorilla/context"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
)
|
||||
|
||||
var prefix map[string]string
|
||||
|
@ -50,5 +51,7 @@ func addRoutes(sm *http.ServeMux, a *Allowances, staticFiles string) {
|
|||
)
|
||||
}
|
||||
|
||||
sm.Handle("/metrics", prometheus.Handler())
|
||||
|
||||
context.ClearHandler(sm)
|
||||
}
|
||||
|
|
Laden…
In neuem Issue referenzieren