Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Progressive Web App #4730

Merged
merged 14 commits into from
Nov 27, 2018
Prev Previous commit
Next Next commit
Merge branch 'master' into create_pwa
  • Loading branch information
techknowlogick committed Nov 8, 2018
commit 7585872110713827516b6be26f04b878a3f6af29
8 changes: 8 additions & 0 deletions routers/routes/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,14 @@ func RegisterRoutes(m *macaron.Macaron) {
ctx.HTML(200, "pwa/serviceworker_js")
})

// prometheus metrics endpoint
if setting.Metrics.Enabled {
c := metrics.NewCollector()
prometheus.MustRegister(c)

m.Get("/metrics", routers.Metrics)
}

// Not found handler.
m.NotFound(routers.NotFound)
}
You are viewing a condensed version of this merge commit. You can view the full changes here.