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/logql/limits.go

22 lines
339 B

package logql
import (
"math"
)
var (
NoLimits = &fakeLimits{maxSeries: math.MaxInt32}
)
// Limits allow the engine to fetch limits for a given users.
type Limits interface {
MaxQuerySeries(userID string) int
}
type fakeLimits struct {
maxSeries int
}
func (f fakeLimits) MaxQuerySeries(userID string) int {
return f.maxSeries
}