mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-25 16:48:17 +00:00
Use /prometheus instead of /api/metrics/prometheus for metrics
This commit is contained in:
parent
3a255230ec
commit
91696376d5
1 changed files with 2 additions and 2 deletions
|
@ -172,9 +172,9 @@ func Load(middleware ...gin.HandlerFunc) http.Handler {
|
||||||
debugger.GET("/pprof/trace", debug.TraceHandler())
|
debugger.GET("/pprof/trace", debug.TraceHandler())
|
||||||
}
|
}
|
||||||
|
|
||||||
monitor := e.Group("/api/metrics")
|
monitor := e.Group("/metrics")
|
||||||
{
|
{
|
||||||
monitor.GET("/prometheus",
|
monitor.GET("",
|
||||||
session.MustAdmin(),
|
session.MustAdmin(),
|
||||||
metrics.PromHandler(),
|
metrics.PromHandler(),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue