package
2.9.12+incompatible
Repository: https://github.com/grafana/loki.git
Documentation: pkg.go.dev

# Functions

NewOverrides makes a new Overrides.
TODO(jordanrushing): break out overrides from defaults?.
No description provided by the author
SetDefaultLimitsForYAMLUnmarshalling sets global default limits, used when loading Limits from YAML files.

# Constants

No description provided by the author
600MB.
No description provided by the author
No description provided by the author
DuplicateLabelNames is a reason for discarding a log line which has duplicate label names.
No description provided by the author
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`.
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
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.
No description provided by the author
No description provided by the author
No description provided by the author
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.
No description provided by the author
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
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`.
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.
No description provided by the author
MutatedBytes is a metric of the total mutated bytes, by reason.
MutatedSamples is a metric of the total number of lines mutated, by reason.
No description provided by the author

# Structs

No description provided by the author
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.
No description provided by the author
OverwriteMarshalingStringMap will overwrite the src map when unmarshaling as opposed to merging.
RateLimit is a colocated limit & burst config.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

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