Skip to content

fix: use unique value for /gitlab/v1 API route names on metrics

João Pereira requested to merge v1-route-names into master

While looking at the metrics in production (.com), I noticed that we're not using the correct value for the route label of prometheus metrics:

Screen_Shot_2022-02-28_at_12.00.44

These should be prefixed with the API base path. For the v2 API we call v2.RoutePath(routeName), which in turn resolves the route name using a switch.

Merge request reports

Loading