feat: support for prometheus (#1784)

This commit is contained in:
OutOfEastGate
2023-04-25 16:06:09 +08:00
committed by GitHub
parent fe53e90d37
commit 1003639e5b
10 changed files with 342 additions and 3 deletions

View File

@ -82,6 +82,7 @@ func main() {
logs.SetLogFuncCall(false)
go ldap.StartLdapServer()
go object.ClearThroughputPerSecond()
beego.Run(fmt.Sprintf(":%v", port))
beego.RunWithMiddleWares(fmt.Sprintf(":%v", port), routers.PrometheusMiddleWare)
}