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/bloomcompactor/table_utils.go

16 lines
398 B

package bloomcompactor
import (
"github.com/prometheus/common/model"
"github.com/grafana/loki/pkg/compactor/retention"
)
func getIntervalsForTables(tables []string) map[string]model.Interval {
tablesIntervals := make(map[string]model.Interval, len(tables))
for _, table := range tables {
tablesIntervals[table] = retention.ExtractIntervalFromTableName(table)
}
return tablesIntervals
}