Browse Source

added prometheus route

master
Stephen McQuay 3 years ago
parent
commit
57e252ce2b
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routes.go

+ 3
- 0
routes.go 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)
}

Loading…
Cancel
Save