1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-30 10:11:23 +02:00

Use /prometheus instead of /api/metrics/prometheus for metrics

This commit is contained in:
Jason Riddle 2017-04-30 17:09:58 -04:00
parent 3a255230ec
commit 91696376d5

View File

@ -172,9 +172,9 @@ func Load(middleware ...gin.HandlerFunc) http.Handler {
debugger.GET("/pprof/trace", debug.TraceHandler())
}
monitor := e.Group("/api/metrics")
monitor := e.Group("/metrics")
{
monitor.GET("/prometheus",
monitor.GET("",
session.MustAdmin(),
metrics.PromHandler(),
)