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

Method MaxGlobalMetadataPerMetric

pkg/util/validation/limits.go:897–899  ·  view source on GitHub ↗

MaxGlobalMetadataPerMetric returns the maximum number of metadata allowed per metric across the cluster.

(userID string)

Source from the content-addressed store, hash-verified

895
896// MaxGlobalMetadataPerMetric returns the maximum number of metadata allowed per metric across the cluster.
897func (o *Overrides) MaxGlobalMetadataPerMetric(userID string) int {
898 return o.GetOverridesForUser(userID).MaxGlobalMetadataPerMetric
899}
900
901// PromoteResourceAttributes returns the promote resource attributes for a given user.
902func (o *Overrides) PromoteResourceAttributes(userID string) []string {

Callers 2

maxMetadataPerMetricMethod · 0.80

Calls 1

GetOverridesForUserMethod · 0.95

Tested by

no test coverage detected