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

Method AcceptMixedHASamples

pkg/util/validation/limits.go:665–667  ·  view source on GitHub ↗

AcceptMixedHASamples returns whether the distributor should track and accept samples from mixed HA replicas for this user.

(userID string)

Source from the content-addressed store, hash-verified

663
664// AcceptMixedHASamples returns whether the distributor should track and accept samples from mixed HA replicas for this user.
665func (o *Overrides) AcceptMixedHASamples(userID string) bool {
666 return o.GetOverridesForUser(userID).AcceptMixedHASamples
667}
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 {

Callers

nothing calls this directly

Calls 1

GetOverridesForUserMethod · 0.95

Tested by

no test coverage detected