From 57e252ce2b6e9f7915ce456d968e0e3a73337b64 Mon Sep 17 00:00:00 2001 From: "Stephen McQuay (smcquay)" Date: Sun, 25 Sep 2016 15:26:50 -0700 Subject: [PATCH] added prometheus route --- routes.go | 3 +++ 1 file changed, 3 insertions(+) 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) }