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/ratestore.go

25 lines
501 B

package distributor
import (
"fmt"
"github.com/grafana/loki/pkg/logproto"
)
type unshardableStreamErr struct {
labels string
entriesNum int
shardNum int
}
func (u *unshardableStreamErr) Error() string {
return fmt.Sprintf("couldn't shard stream %s. number of shards (%d) is higher than number of entries (%d)", u.labels, u.shardNum, u.entriesNum)
}
type noopRateStore struct {
rate int
}
func (n *noopRateStore) RateFor(stream *logproto.Stream) (int, error) {
return n.rate, nil
}