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:
parent
3a255230ec
commit
91696376d5
@ -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(),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user