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/writefailures/strategy.go

21 lines
307 B

package writefailures
type strategy struct {
burst int
rate float64
}
func newStrategy(burst int, rate float64) *strategy {
return &strategy{
burst: burst,
rate: rate,
}
}
func (s *strategy) Burst(_ string) int {
return s.burst
}
func (s *strategy) Limit(_ string) float64 {
return s.rate
}