added prometheus route

This commit is contained in:
Stephen McQuay 2016-09-25 15:26:50 -07:00
parent d90baca788
commit 57e252ce2b
No known key found for this signature in database
GPG Key ID: 1ABF428F71BAFC3D
1 changed files with 3 additions and 0 deletions

View File

@ -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)
}