Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: metrics url exact path (#17154)

p0nycbf99aef6f83
diff --git a/backend/server/echo_routes.go b/backend/server/echo_routes.go
index 4a787ab7a6..cf43b336e6 100644
--- a/backend/server/echo_routes.go
+++ b/backend/server/echo_routes.go
@@ -57,6 +57,9 @@ func configureEchoRouters(
registerPprof(e, &profile.RuntimeDebug)
p := prometheus.NewPrometheus("api", nil)
+ p.RequestCounterURLLabelMappingFunc = func(c echo.Context) string {
+ return c.Request().URL.Path
+ }
p.Use(e)
e.GET("/healthz", func(c echo.Context) error {