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

Method RegisterCompactor

pkg/api/api.go:423–426  ·  view source on GitHub ↗

RegisterCompactor registers the ring UI page associated with the compactor.

(c *compactor.Compactor)

Source from the content-addressed store, hash-verified

421
422// RegisterCompactor registers the ring UI page associated with the compactor.
423func (a *API) RegisterCompactor(c *compactor.Compactor) {
424 a.indexPage.AddLink(SectionAdminEndpoints, "/compactor/ring", "Compactor Ring Status")
425 a.RegisterRoute("/compactor/ring", http.HandlerFunc(c.RingHandler), false, "GET", "POST")
426}
427
428type Distributor interface {
429 querier.Distributor

Callers 1

initCompactorMethod · 0.80

Calls 2

RegisterRouteMethod · 0.95
AddLinkMethod · 0.80

Tested by

no test coverage detected