package
0.7.0
Repository: https://github.com/cortexproject/cortex.git
Documentation: pkg.go.dev

# Functions

NewOverrides makes a new Overrides.
SetDefaultLimitsForYAMLUnmarshalling sets global default limits, used when loading Limits from YAML files.
ValidateLabels returns an err if the labels are invalid.
ValidateSample returns an err if the sample is invalid.

# Constants

ErrQueryTooLong is used in chunk store and query frontend.
Supported values for enum limits.
Supported values for enum limits.
RateLimited is one of the values for the reason to discard samples.

# Variables

DiscardedSamples is a metric of the number of discarded samples, by reason.

# Structs

Limits describe all the limits for users; can be used to describe global default limits via flags, or per-user limits via yaml config.
Overrides periodically fetch a set of per-user overrides, and provides convenience functions for fetching the correct value.

# Interfaces

LabelValidationConfig helps with getting required config to validate labels.
SampleValidationConfig helps with getting required config to validate sample.

# Type aliases

TenantLimits is a function that returns limits for given tenant, or nil, if there are no tenant-specific limits.