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

Method MaxLocalMetadataPerMetric

pkg/util/validation/limits.go:887–889  ·  view source on GitHub ↗

MaxLocalMetadataPerMetric returns the maximum number of metadata allowed per metric in a single ingester.

(userID string)

Source from the content-addressed store, hash-verified

885
886// MaxLocalMetadataPerMetric returns the maximum number of metadata allowed per metric in a single ingester.
887func (o *Overrides) MaxLocalMetadataPerMetric(userID string) int {
888 return o.GetOverridesForUser(userID).MaxLocalMetadataPerMetric
889}
890
891// MaxGlobalMetricsWithMetadataPerUser returns the maximum number of metrics with metadata a user is allowed to store across the cluster.
892func (o *Overrides) MaxGlobalMetricsWithMetadataPerUser(userID string) int {

Callers 2

maxMetadataPerMetricMethod · 0.80

Calls 1

GetOverridesForUserMethod · 0.95

Tested by

no test coverage detected