From 91696376d56ae71547709aa655a4c2d64b839015 Mon Sep 17 00:00:00 2001 From: Jason Riddle Date: Sun, 30 Apr 2017 17:09:58 -0400 Subject: [PATCH] Use /prometheus instead of /api/metrics/prometheus for metrics --- router/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/router.go b/router/router.go index 0041b74a3..3c5d2f624 100644 --- a/router/router.go +++ b/router/router.go @@ -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(), )