MCPcopy Create free account
hub / github.com/cortexproject/cortex / RegisterRing

Method RegisterRing

pkg/api/api.go:406–412  ·  view source on GitHub ↗

RegisterRing registers the ring UI page associated with the distributor for writes.

(r *ring.Ring)

Source from the content-addressed store, hash-verified

404
405// RegisterRing registers the ring UI page associated with the distributor for writes.
406func (a *API) RegisterRing(r *ring.Ring) {
407 a.indexPage.AddLink(SectionAdminEndpoints, "/ingester/ring", "Ingester Ring Status")
408 a.RegisterRoute("/ingester/ring", r, false, "GET", "POST")
409
410 // Legacy Route
411 a.RegisterRoute("/ring", r, false, "GET", "POST")
412}
413
414// RegisterStoreGateway registers the ring UI page associated with the store-gateway.
415func (a *API) RegisterStoreGateway(s *storegateway.StoreGateway) {

Callers 1

initRingMethod · 0.80

Calls 2

RegisterRouteMethod · 0.95
AddLinkMethod · 0.80

Tested by

no test coverage detected