mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-10 00:29:01 +02:00
13 lines
214 B
Go
13 lines
214 B
Go
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)
|
|
}
|
|
}
|