Create & Init Project...
This commit is contained in:
12
library/net/http/blademaster/prometheus.go
Normal file
12
library/net/http/blademaster/prometheus.go
Normal file
@ -0,0 +1,12 @@
|
||||
package blademaster
|
||||
|
||||
import (
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
)
|
||||
|
||||
func monitor() HandlerFunc {
|
||||
return func(c *Context) {
|
||||
h := promhttp.Handler()
|
||||
h.ServeHTTP(c.Writer, c.Request)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user