package
0.0.0-20241004052545-caa2fb9b60ae
Repository: https://github.com/grafana/mimir.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AllTrueBooleansPerTenant returns true only if limit func is true for all given tenants.
DiscardedExemplarsCounter creates per-user counter vector for exemplars discarded for a given reason.
DiscardedMetadataCounter creates per-user counter vector for metadata discarded for a given reason.
DiscardedRequestsCounter creates per-user counter vector for requests discarded for a given reason.
DiscardedSamplesCounter creates per-user counter vector for samples discarded for a given reason.
GroupLabel obtains the first non-empty group label from the first timeseries in the list of incoming timeseries.
No description provided by the author
MaxDurationPerTenant is returning the maximum duration per tenant.
MinDurationPerTenant is returning the minimum duration per tenant.
No description provided by the author
No description provided by the author
No description provided by the author
MustRegisterExtension registers the extensions type with given name and returns a function to get the extensions value from a *Limits instance.
No description provided by the author
No description provided by the author
NewMockTenantLimits creates a new mockTenantLimits that returns per-tenant limits based on the given map.
NewOverrides makes a new Overrides.
NotificationRateLimitMap returns a map that can be used as a flag for setting notification rate limits.
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.
SmallestPositiveNonZeroIntPerTenant is returning the minimal positive and non-zero value of the supplied limit function for all given tenants.
UserLimitsHandler handles user limits.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MinCompactorPartialBlockDeletionDelay is the minimum partial blocks deletion delay that can be configured in Mimir.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
Limits describe all the limits for users; can be used to describe global default limits via flags, or per-user limits via yaml config.
LimitsMap is a generic map that can hold either float64 or int as values.
Overrides periodically fetch a set of per-user overrides, and provides convenience functions for fetching the correct value.
No description provided by the author
# Interfaces
LimitError is a marker interface for the errors that do not comply with the specified limits.
TenantLimits exposes per-tenant limit overrides to various resource usage limits.