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

# Functions

New creates a new stage for the given type and configuration.
NewCRI creates a CRI format specific pipeline stage.
NewDocker creates a Docker json log format specific pipeline stage.
NewPipeline creates a new log entry pipeline from a configuration.
RunWith will reads from the input channel entries, mutate them with the process function and returns them via the output channel.
RunWithSkip same as RunWith, except it skip sending it to output channel, if `process` functions returns `skip` true.
RunWithSkiporSendMany same as RunWithSkip, except it can either skip sending it to output channel, if `process` functions returns `skip` true.
Sanitize a input string to convert it into a valid prometheus label TODO: switch to prometheus/prometheus/util/strutil/SanitizeFullLabelName.

# Constants

Config Errors.
Config Errors.
Config Errors.
Config Errors.
ErrEmptyLabelAllowStageConfig error returned if config is empty.
ErrEmptyLabelDropStageConfig error returned if config is empty.
Config Errors.
Config Errors.
Config Errors.
Config Errors.
Config Errors.
Config Errors.
Config Errors.
ErrEmptyStaticLabelStageConfig error returned if config is empty.
Config Errors.
Config Errors.
Config Errors.
Config Errors.
Config Errors.
Config Errors.
Config Errors.
Max buffer size to hold partial lines.
80bytes per rate.Limiter ~ 1MiB memory.
Deprecated.

# Variables

Debug is used to wrap debug log statements, the go-kit logger won't let us introspect the current log level so this global is used for that purpose.
Inspect is used to debug promtail pipelines by showing diffs between pipeline stages.

# Structs

CriConfig contains the configuration for the cri stage.
DropConfig contains the configuration for a dropStage.
Entry
GeoIPConfig represents GeoIP stage config.
JSONConfig represents a JSON Stage configuration.
LogfmtConfig represents a logfmt Stage configuration.
MatcherConfig contains the configuration for a matcherStage.
MetricConfig is a single metrics configuration.
MultilineConfig contains the configuration for a multilineStage.
OutputConfig configures output value extraction.
PackConfig contains the configuration for a packStage.
Pipeline pass down a log entry to each stage for mutation and/or label extraction.
RegexConfig contains a regexStage configuration.
ReplaceConfig contains a regexStage configuration.
SamplingConfig contains the configuration for a samplingStage.
TemplateConfig configures template value extraction.
TimestampConfig configures timestamp extraction.

# Interfaces

Processor takes an existing set of labels, timestamp and log entry and returns either a possibly mutated timestamp and log entry.
Stage can receive entries via an inbound channel and forward mutated entries to an outbound channel.

# Type aliases

labelallowConfig is a slice of labels to be included.
LabelDropConfig is a slice of labels to be dropped.
LabelsConfig is a set of labels to be extracted.
MetricsConfig is a set of configured metrics.
PipelineStage contains configuration for a single pipeline stage.
PipelineStages contains configuration for each stage within a pipeline.
StaticLabelConfig is a slice of static-labels to be included.