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/loghttp/push/usage_tracker.go

16 lines
450 B

package push
import (
"time"
"github.com/prometheus/prometheus/model/labels"
)
type UsageTracker interface {
// ReceivedBytesAdd records ingested bytes by tenant, retention period and labels.
ReceivedBytesAdd(tenant string, retentionPeriod time.Duration, labels labels.Labels, value float64)
// DiscardedBytesAdd records discarded bytes by tenant and labels.
DiscardedBytesAdd(tenant, reason string, labels labels.Labels, value float64)
}