You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
kratos/pkg/net/http/blademaster/prometheus.go

12 lines
214 B

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