package
2.2.1+incompatible
Repository: https://github.com/metrico/loki-apache.git
Documentation: pkg.go.dev

# Functions

NewOverrides makes a new Overrides.
SetDefaultLimitsForYAMLUnmarshalling sets global default limits, used when loading Limits from YAML files.

# Constants

DuplicateLabelNames is a reason for discarding a log line which has duplicate label names.
No description provided by the author
Global ingestion rate strategy.
GreaterThanMaxSampleAge is a reason for discarding log lines which are older than the current time - `reject_old_samples_max_age`.
No description provided by the author
InvalidLabels is a reason for discarding log lines which have labels that cannot be parsed.
No description provided by the author
LabelNameTooLong is a reason for discarding a log line which has a label name too long.
No description provided by the author
LabelValueTooLong is a reason for discarding a log line which has a lable value too long.
No description provided by the author
LineTooLong is a reason for discarding too long log lines.
No description provided by the author
Local ingestion rate strategy.
MaxLabelNamesPerSeries is a reason for discarding a log line which has too many label names.
No description provided by the author
RateLimited is one of the values for the reason to discard samples.
No description provided by the author
StreamLimit is a reason for discarding lines when we can't create a new stream because the limit of active streams has been reached.
No description provided by the author
TooFarInFuture is a reason for discarding log lines which are newer than the current time + `creation_grace_period`.
No description provided by the author

# Variables

DiscardedBytes is a metric of the total discarded bytes, by reason.
DiscardedSamples is a metric of the number of discarded samples, by reason.

# Structs

Limits describe all the limits for users; can be used to describe global default limits via flags, or per-user limits via yaml config.
Overrides periodically fetch a set of per-user overrides, and provides convenience functions for fetching the correct value.

# Type aliases

TenantLimits is a function that returns limits for given tenant, or nil, if there are no tenant-specific limits.