(sc *ServerContext)
| 394 | } |
| 395 | |
| 396 | func CreateMetricRouter(sc *ServerContext) *mux.Router { |
| 397 | r := NewRouter(sc, metricsServer) |
| 398 | |
| 399 | r.Handle("/metrics", makeSilentHandler(sc, metricsPrivs, []Permission{PermStatsExport}, nil, (*handler).handleMetrics)).Methods("GET") |
| 400 | r.Handle("/_metrics", makeSilentHandler(sc, metricsPrivs, []Permission{PermStatsExport}, nil, (*handler).handleMetrics)).Methods("GET") |
| 401 | r.Handle(kDebugURLPathPrefix, makeSilentHandler(sc, metricsPrivs, []Permission{PermStatsExport}, nil, (*handler).handleExpvar)).Methods("GET") |
| 402 | |
| 403 | return r |
| 404 | } |
| 405 | |
| 406 | func createDiagnosticRouter(sc *ServerContext) *mux.Router { |
| 407 | r := NewRouter(sc, diagnosticServer) |
no test coverage detected