MCPcopy Index your code
hub / github.com/cortexproject/cortex / RegisterRuntimeConfig

Method RegisterRuntimeConfig

pkg/api/api.go:278–283  ·  view source on GitHub ↗

RegisterRuntimeConfig registers the endpoints associates with the runtime configuration

(runtimeConfigHandler http.HandlerFunc)

Source from the content-addressed store, hash-verified

276
277// RegisterRuntimeConfig registers the endpoints associates with the runtime configuration
278func (a *API) RegisterRuntimeConfig(runtimeConfigHandler http.HandlerFunc) {
279 a.indexPage.AddLink(SectionAdminEndpoints, "/runtime_config", "Current Runtime Config (incl. Overrides)")
280 a.indexPage.AddLink(SectionAdminEndpoints, "/runtime_config?mode=diff", "Current Runtime Config (show only values that differ from the defaults)")
281
282 a.RegisterRoute("/runtime_config", runtimeConfigHandler, false, "GET")
283}
284
285// RegisterDistributor registers the endpoints associated with the distributor.
286func (a *API) RegisterDistributor(d *distributor.Distributor, pushConfig distributor.Config, overrides *validation.Overrides, reg prometheus.Registerer) {

Callers 1

initRuntimeConfigMethod · 0.80

Calls 2

RegisterRouteMethod · 0.95
AddLinkMethod · 0.80

Tested by

no test coverage detected