Prometheus Metrics API CreateMetricHandler Creates the HTTP handler for the prometheus metrics API of a gateway server.
(sc *ServerContext)
| 349 | |
| 350 | // CreateMetricHandler Creates the HTTP handler for the prometheus metrics API of a gateway server. |
| 351 | func 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. |
| 357 | func createDiagnosticHandler(sc *ServerContext) http.Handler { |
no test coverage detected