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

Method getInstancesByAddr

pkg/ring/model.go:539–546  ·  view source on GitHub ↗

getInstancesByAddr returns instances id by its address

()

Source from the content-addressed store, hash-verified

537
538// getInstancesByAddr returns instances id by its address
539func (d *Desc) getInstancesByAddr() map[string]string {
540 instancesByAddMap := make(map[string]string, len(d.Ingesters))
541 for id, instance := range d.Ingesters {
542 instancesByAddMap[instance.Addr] = id
543 }
544
545 return instancesByAddMap
546}
547
548type CompareResult int
549

Callers 1

updateRingStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected