Help us shape the future of Go! Take the 2026 Go Developer Survey

limits

package
v3.6.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Limits

type Limits interface {
	queryrangebase.Limits
	logql.Limits
	QuerySplitDuration(string) time.Duration
	InstantMetricQuerySplitDuration(string) time.Duration
	MetadataQuerySplitDuration(string) time.Duration
	RecentMetadataQuerySplitDuration(string) time.Duration
	RecentMetadataQueryWindow(string) time.Duration
	IngesterQuerySplitDuration(string) time.Duration
	MaxQuerySeries(context.Context, string) int
	MaxEntriesLimitPerQuery(context.Context, string) int
	MinShardingLookback(string) time.Duration
	// TSDBMaxQueryParallelism returns the limit to the number of split queries the
	// frontend will process in parallel for TSDB queries.
	TSDBMaxQueryParallelism(context.Context, string) int
	// TSDBMaxBytesPerShard returns the limit to the number of bytes a single shard
	TSDBMaxBytesPerShard(string) int
	TSDBShardingStrategy(userID string) string

	RequiredLabels(context.Context, string) []string
	RequiredNumberLabels(context.Context, string) int
	MaxQueryBytesRead(context.Context, string) int
	MaxQuerierBytesRead(context.Context, string) int
	MaxStatsCacheFreshness(context.Context, string) time.Duration
	MaxMetadataCacheFreshness(context.Context, string) time.Duration
	VolumeEnabled(string) bool

	ShardAggregations(string) []string
}

Limits extends the cortex limits interface with support for per tenant splitby parameters They've been extracted to avoid import cycles.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL