Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/distributor/limits.go

28 lines
755 B

package distributor
import (
"time"
"github.com/grafana/loki/pkg/validation"
"github.com/grafana/loki/pkg/distributor/shardstreams"
)
// Limits is an interface for distributor limits/related configs
type Limits interface {
MaxLineSize(userID string) int
MaxLineSizeTruncate(userID string) bool
EnforceMetricName(userID string) bool
MaxLabelNamesPerSeries(userID string) int
MaxLabelNameLength(userID string) int
MaxLabelValueLength(userID string) int
CreationGracePeriod(userID string) time.Duration
RejectOldSamples(userID string) bool
RejectOldSamplesMaxAge(userID string) time.Duration
IncrementDuplicateTimestamps(userID string) bool
ShardStreams(userID string) *shardstreams.Config
AllByUserID() map[string]*validation.Limits
}