prometheus.go 214 B

123456789101112
  1. package blademaster
  2. import (
  3. "github.com/prometheus/client_golang/prometheus/promhttp"
  4. )
  5. func monitor() HandlerFunc {
  6. return func(c *Context) {
  7. h := promhttp.Handler()
  8. h.ServeHTTP(c.Writer, c.Request)
  9. }
  10. }