MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / CreateMetricHandler

Function CreateMetricHandler

rest/routing.go:351–354  ·  view source on GitHub ↗

Prometheus Metrics API CreateMetricHandler Creates the HTTP handler for the prometheus metrics API of a gateway server.

(sc *ServerContext)

Source from the content-addressed store, hash-verified

349
350// CreateMetricHandler Creates the HTTP handler for the prometheus metrics API of a gateway server.
351func CreateMetricHandler(sc *ServerContext) http.Handler {
352 router := CreateMetricRouter(sc)
353 return wrapRouter(sc, metricsPrivs, metricsServer, router)
354}
355
356// createDiagnosticHandler Creates the HTTP handler for the diagnostic API of a gateway server.
357func createDiagnosticHandler(sc *ServerContext) http.Handler {

Callers 2

StartServerFunction · 0.85
TestMetricsHandlerMethod · 0.85

Calls 2

CreateMetricRouterFunction · 0.85
wrapRouterFunction · 0.85

Tested by

no test coverage detected