diff --git a/routes.go b/routes.go index 9e33f3b..b348282 100644 --- a/routes.go +++ b/routes.go @@ -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) }