# Functions
LimitsPerLabelSetsForSeries checks matching labelset limits for the given series.
MaxDurationPerTenant is returning the maximum duration per tenant.
NewOverrides makes a new Overrides.
NewOverridesExporter creates an OverridesExporter that reads updates to per-tenant limits using the provided function.
SetDefaultLimitsForYAMLUnmarshalling sets global default limits, used when loading Limits from YAML files.
SmallestPositiveIntPerTenant is returning the minimal positive value of the supplied limit function for all given tenants.
SmallestPositiveNonZeroDurationPerTenant is returning the minimal positive and non-zero value of the supplied limit function for all given tenants.
SmallestPositiveNonZeroFloat64PerTenant is returning the minimal positive and non-zero value of the supplied limit function for all given tenants.
ValidateExemplar returns an error if the exemplar is invalid.
ValidateLabels returns an err if the labels are invalid.
ValidateMetadata returns an err if a metric metadata is invalid.
ValidateSampleTimestamp returns an err if the sample timestamp is invalid.
# Constants
DroppedByRelabelConfiguration Samples can also be discarded because of relabeling configuration.
DroppedByUserConfigurationOverride Samples discarded due to user configuration removing label __name__.
ErrQueryTooLong is used in chunk store, querier and query frontend.
The combined length of the label names and values of an Exemplar's LabelSet MUST NOT exceed 128 UTF-8 characters https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#exemplars.
Supported values for enum limits.
Supported values for enum limits.
RateLimited is one of the values for the reason to discard samples.
Too many HA clusters is one of the reasons for discarding samples.
# 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.
OverridesExporter exposes per-tenant resource limit overrides as Prometheus metrics.
# Interfaces
TenantLimits exposes per-tenant limit overrides to various resource usage limits.
# Type aliases
AccessDeniedError are errors that do not comply with the limits specified.
LimitError are errors that do not comply with the limits specified.
ValidationError is an error returned by series validation.