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

17 lines
533 B

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