package
3.4.2
Repository: https://github.com/grafana/loki.git
Documentation: pkg.go.dev

# Functions

NewOverrides makes a new Overrides.
TODO(jordanrushing): break out overrides from defaults?.
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.
GlobalRateLimitStrat represents a ingestion rate limiting strategy that enforces the rate limiting globally, configuring a per-distributor local rate limiter as "ingestion_rate / N", where N is the number of distributor replicas (it's automatically adjusted if the number of replicas change).
GreaterThanMaxSampleAge is a reason for discarding log lines which are older than the current time - `reject_old_samples_max_age`.
InvalidLabels is a reason for discarding log lines which have labels that cannot be parsed.
LabelNameTooLong is a reason for discarding a log line which has a label name too long.
LabelValueTooLong is a reason for discarding a log line which has a lable value too long.
LineTooLong is a reason for discarding too long log lines.
LocalRateLimitStrat represents a ingestion rate limiting strategy that enforces the limit on a per distributor basis.
MaxLabelNamesPerSeries is a reason for discarding a log line which has too many label names.
OutOfOrder is a reason for discarding lines when Loki doesn't accept out of order log lines (parameter `-ingester.unordered-writes` is set to `false`) and the lines in question are older than the newest line in the stream.
RateLimited is one of the values for the reason to discard samples.
StreamLimit is a reason for discarding lines when we can't create a new stream because the limit of active streams has been reached.
StreamRateLimit is a reason for discarding lines when the streams own rate limit is hit rather than the overall ingestion rate limit.
TooFarBehind is a reason for discarding lines when Loki accepts unordered ingest (parameter `-ingester.unordered-writes` is set to `true`, which is the default) and the lines in question are older than half of `-ingester.max-chunk-age` compared to the newest line in the stream.
TooFarInFuture is a reason for discarding log lines which are newer than the current time + `creation_grace_period`.

# Variables

DiscardedBytes is a metric of the total discarded bytes, by reason.
DiscardedSamples is a metric of the number of discarded samples, by reason.
MutatedBytes is a metric of the total mutated bytes, by reason.
MutatedSamples is a metric of the total number of lines mutated, 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.
OverwriteMarshalingStringMap will overwrite the src map when unmarshaling as opposed to merging.
RateLimit is a colocated limit & burst config.

# Interfaces

# Type aliases

LimitError are errors that do not comply with the limits specified.