Introduce new unauthenticated endpoint /metric (#5723) (#5829)

/metric exposes Promethus compatible data for scraping metrics

Fixes: #5723
This commit is contained in:
Ashish Kumar Sinha
2018-04-19 04:31:42 +05:30
committed by Harshavardhana
parent 9f31da5d57
commit 9ebb72aa99
92 changed files with 17886 additions and 1 deletions

View File

@@ -119,6 +119,9 @@ func configureServerHandler(endpoints EndpointList) (http.Handler, error) {
// Add healthcheck router
registerHealthCheckRouter(mux)
// Add server metrics router
registerMetricsRouter(mux)
// Register web router when its enabled.
if globalIsBrowserEnabled {
if err := registerWebRouter(mux); err != nil {