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

Method RegisteredAddresses

pkg/ring/client/pool.go:138–146  ·  view source on GitHub ↗

RegisteredAddresses returns all the service addresses for which there's an active client.

()

Source from the content-addressed store, hash-verified

136
137// RegisteredAddresses returns all the service addresses for which there's an active client.
138func (p *Pool) RegisteredAddresses() []string {
139 result := []string{}
140 p.RLock()
141 defer p.RUnlock()
142 for addr := range p.clients {
143 result = append(result, addr)
144 }
145 return result
146}
147
148// Count returns how many clients are in the cache
149func (p *Pool) Count() int {

Callers 3

removeStaleClientsMethod · 0.95
cleanUnhealthyMethod · 0.95
TestPoolCacheFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestPoolCacheFunction · 0.76