Versions in this module Expand all Collapse all v2 v2.4.3 Feb 9, 2022 Changes in this version + const DroppedByRelabelConfiguration + const DroppedByUserConfigurationOverride + const ErrQueryTooLong + const ExemplarMaxLabelSetLength + const GlobalIngestionRateStrategy + const LocalIngestionRateStrategy + const RateLimited + const TooManyHAClusters + func MaxDurationPerTenant(tenantIDs []string, f func(string) time.Duration) time.Duration + func SetDefaultLimitsForYAMLUnmarshalling(defaults Limits) + func SmallestPositiveIntPerTenant(tenantIDs []string, f func(string) int) int + func SmallestPositiveNonZeroDurationPerTenant(tenantIDs []string, f func(string) time.Duration) time.Duration + func SmallestPositiveNonZeroIntPerTenant(tenantIDs []string, f func(string) int) int + type LimitError string + func (e LimitError) Error() string + type Limits struct + AcceptHASamples bool + AlertmanagerMaxAlertsCount int + AlertmanagerMaxAlertsSizeBytes int + AlertmanagerMaxConfigSizeBytes int + AlertmanagerMaxDispatcherAggregationGroups int + AlertmanagerMaxTemplateSizeBytes int + AlertmanagerMaxTemplatesCount int + AlertmanagerReceiversBlockCIDRNetworks flagext.CIDRSliceCSV + AlertmanagerReceiversBlockPrivateAddresses bool + CardinalityLimit int + CompactorBlocksRetentionPeriod model.Duration + CreationGracePeriod model.Duration + DropLabels flagext.StringSlice + EnforceMetadataMetricName bool + EnforceMetricName bool + HAClusterLabel string + HAMaxClusters int + HAReplicaLabel string + IngestionBurstSize int + IngestionRate float64 + IngestionRateStrategy string + IngestionTenantShardSize int + MaxCacheFreshness model.Duration + MaxChunksPerQuery int + MaxChunksPerQueryFromStore int + MaxFetchedChunkBytesPerQuery int + MaxFetchedSeriesPerQuery int + MaxGlobalMetadataPerMetric int + MaxGlobalMetricsWithMetadataPerUser int + MaxGlobalSeriesPerMetric int + MaxGlobalSeriesPerUser int + MaxLabelNameLength int + MaxLabelNamesPerSeries int + MaxLabelValueLength int + MaxLocalMetadataPerMetric int + MaxLocalMetricsWithMetadataPerUser int + MaxLocalSeriesPerMetric int + MaxLocalSeriesPerUser int + MaxMetadataLength int + MaxQueriersPerTenant int + MaxQueryLength model.Duration + MaxQueryLookback model.Duration + MaxQueryParallelism int + MaxSamplesPerQuery int + MaxSeriesPerQuery int + MetricRelabelConfigs []*relabel.Config + MinChunkLength int + NotificationRateLimit float64 + NotificationRateLimitPerIntegration NotificationRateLimitMap + RejectOldSamples bool + RejectOldSamplesMaxAge model.Duration + RulerEvaluationDelay model.Duration + RulerMaxRuleGroupsPerTenant int + RulerMaxRulesPerRuleGroup int + RulerTenantShardSize int + S3SSEKMSEncryptionContext string + S3SSEKMSKeyID string + S3SSEType string + StoreGatewayTenantShardSize int + func (l *Limits) RegisterFlags(f *flag.FlagSet) + func (l *Limits) UnmarshalJSON(data []byte) error + func (l *Limits) UnmarshalYAML(unmarshal func(interface{}) error) error + func (l *Limits) Validate(shardByAllLabels bool) error + type NotificationRateLimitMap map[string]float64 + func (m NotificationRateLimitMap) MarshalYAML() (interface{}, error) + func (m NotificationRateLimitMap) Set(s string) error + func (m NotificationRateLimitMap) String() string + func (m NotificationRateLimitMap) UnmarshalYAML(unmarshal func(interface{}) error) error + type Overrides struct + func NewOverrides(defaults Limits, tenantLimits TenantLimits) (*Overrides, error) + func (o *Overrides) AcceptHASamples(userID string) bool + func (o *Overrides) AlertmanagerMaxAlertsCount(userID string) int + func (o *Overrides) AlertmanagerMaxAlertsSizeBytes(userID string) int + func (o *Overrides) AlertmanagerMaxConfigSize(userID string) int + func (o *Overrides) AlertmanagerMaxDispatcherAggregationGroups(userID string) int + func (o *Overrides) AlertmanagerMaxTemplateSize(userID string) int + func (o *Overrides) AlertmanagerMaxTemplatesCount(userID string) int + func (o *Overrides) AlertmanagerReceiversBlockCIDRNetworks(user string) []flagext.CIDR + func (o *Overrides) AlertmanagerReceiversBlockPrivateAddresses(user string) bool + func (o *Overrides) CardinalityLimit(userID string) int + func (o *Overrides) CompactorBlocksRetentionPeriod(userID string) time.Duration + func (o *Overrides) CreationGracePeriod(userID string) time.Duration + func (o *Overrides) DropLabels(userID string) flagext.StringSlice + func (o *Overrides) EnforceMetadataMetricName(userID string) bool + func (o *Overrides) EnforceMetricName(userID string) bool + func (o *Overrides) EvaluationDelay(userID string) time.Duration + func (o *Overrides) HAClusterLabel(userID string) string + func (o *Overrides) HAReplicaLabel(userID string) string + func (o *Overrides) IngestionBurstSize(userID string) int + func (o *Overrides) IngestionRate(userID string) float64 + func (o *Overrides) IngestionRateStrategy() string + func (o *Overrides) IngestionTenantShardSize(userID string) int + func (o *Overrides) MaxCacheFreshness(userID string) time.Duration + func (o *Overrides) MaxChunksPerQuery(userID string) int + func (o *Overrides) MaxChunksPerQueryFromStore(userID string) int + func (o *Overrides) MaxFetchedChunkBytesPerQuery(userID string) int + func (o *Overrides) MaxFetchedSeriesPerQuery(userID string) int + func (o *Overrides) MaxGlobalMetadataPerMetric(userID string) int + func (o *Overrides) MaxGlobalMetricsWithMetadataPerUser(userID string) int + func (o *Overrides) MaxGlobalSeriesPerMetric(userID string) int + func (o *Overrides) MaxGlobalSeriesPerUser(userID string) int + func (o *Overrides) MaxHAClusters(user string) int + func (o *Overrides) MaxLabelNameLength(userID string) int + func (o *Overrides) MaxLabelNamesPerSeries(userID string) int + func (o *Overrides) MaxLabelValueLength(userID string) int + func (o *Overrides) MaxLocalMetadataPerMetric(userID string) int + func (o *Overrides) MaxLocalMetricsWithMetadataPerUser(userID string) int + func (o *Overrides) MaxLocalSeriesPerMetric(userID string) int + func (o *Overrides) MaxLocalSeriesPerUser(userID string) int + func (o *Overrides) MaxMetadataLength(userID string) int + func (o *Overrides) MaxQueriersPerUser(userID string) int + func (o *Overrides) MaxQueryLength(userID string) time.Duration + func (o *Overrides) MaxQueryLookback(userID string) time.Duration + func (o *Overrides) MaxQueryParallelism(userID string) int + func (o *Overrides) MaxSamplesPerQuery(userID string) int + func (o *Overrides) MaxSeriesPerQuery(userID string) int + func (o *Overrides) MetricRelabelConfigs(userID string) []*relabel.Config + func (o *Overrides) MinChunkLength(userID string) int + func (o *Overrides) NotificationBurstSize(user string, integration string) int + func (o *Overrides) NotificationRateLimit(user string, integration string) rate.Limit + func (o *Overrides) RejectOldSamples(userID string) bool + func (o *Overrides) RejectOldSamplesMaxAge(userID string) time.Duration + func (o *Overrides) RulerMaxRuleGroupsPerTenant(userID string) int + func (o *Overrides) RulerMaxRulesPerRuleGroup(userID string) int + func (o *Overrides) RulerTenantShardSize(userID string) int + func (o *Overrides) S3SSEKMSEncryptionContext(user string) string + func (o *Overrides) S3SSEKMSKeyID(user string) string + func (o *Overrides) S3SSEType(user string) string + func (o *Overrides) StoreGatewayTenantShardSize(userID string) int + type OverridesExporter struct + func NewOverridesExporter(tenantLimits TenantLimits) *OverridesExporter + func (oe *OverridesExporter) Collect(ch chan<- prometheus.Metric) + func (oe *OverridesExporter) Describe(ch chan<- *prometheus.Desc) + type TenantLimits interface + AllByUserID func() map[string]*Limits + ByUserID func(userID string) *Limits