Skip to content

Commit

Permalink
Move Promethues metrics endpoint under /v1/ prefix. Closes #423 (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthenw committed May 14, 2018
1 parent e5138aa commit 770a30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpapi/httpapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type SubscriptionsResponse struct {
// RegisterRoutes register HTTP API routes
func (h HTTPAPI) RegisterRoutes(router *httprouter.Router) {
router.GET("/v1/status", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {})
router.Handler("GET", "/metrics", promhttp.Handler())
router.Handler("GET", "/v1/metrics", promhttp.Handler())

router.GET("/v1/spaces/:space/functions", h.listFunctions)
router.GET("/v1/spaces/:space/functions/:id", h.getFunction)
Expand Down

0 comments on commit 770a30f

Please sign in to comment.