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

Method HAClusterLabel

pkg/util/validation/limits.go:670–672  ·  view source on GitHub ↗

HAClusterLabel returns the cluster label to look for when deciding whether to accept a sample from a Prometheus HA replica.

(userID string)

Source from the content-addressed store, hash-verified

668
669// HAClusterLabel returns the cluster label to look for when deciding whether to accept a sample from a Prometheus HA replica.
670func (o *Overrides) HAClusterLabel(userID string) string {
671 return o.GetOverridesForUser(userID).HAClusterLabel
672}
673
674// HAReplicaLabel returns the replica label to look for when deciding whether to accept a sample from a Prometheus HA replica.
675func (o *Overrides) HAReplicaLabel(userID string) string {

Callers

nothing calls this directly

Calls 1

GetOverridesForUserMethod · 0.95

Tested by

no test coverage detected