StructsΒ§
- Json
Stream πItem - LOKI_
INIT_ πSCHEMAS - Loki
Json πParser - Loki
Middle Item - This is the holder of the loki lines parsed from json or protobuf.
The generic here is either [VrlValue] or Vec
. Depending on the target destination, this can be converted to LokiRawItem or LokiPipeline. - Loki
PbParser - Loki
Pipeline - This is the line item prepared for the pipeline engine.
- Loki
Pipeline πContext Req - Loki
RawItem - This is the line item for the Loki raw ingestion. Weβll persist the line in its whole, set labels into tags, and structured metadata into a big JSON.
- PbStream
Item
ConstantsΒ§
- LABEL_
KEY π - LINES_
KEY π - LOKI_
LINE_ πCOLUMN - LOKI_
LINE_ πCOLUMN_ NAME - LOKI_
PIPELINE_ πLABEL_ PREFIX - LOKI_
PIPELINE_ πMETADATA_ PREFIX - LOKI_
STRUCTURED_ πMETADATA_ COLUMN - LOKI_
TABLE_ πNAME - STREAMS_
KEY π
FunctionsΒ§
- append_
label_ πpair_ pipeline_ metadata - append_
pipeline_ πlabels - append_
vrl_ πpipeline_ metadata - build_
loki_ πcontext_ req - build_
loki_ πpipeline_ context_ req - build_
loki_ πraw_ insert_ request - extract_
item π - Extract Loki entries from the supported wire format into the callerβs destination type.
- init_
row π - label_
pair_ πmetadata_ to_ jsonb - loki_
ingest - new_
loki_ πpipeline_ map - parse_
loki_ labels - since weβre hand-parsing the labels, if any error is encountered, weβll just skip the label note: pub here for bench usage ref:
- process_
labels π - prost_
ts_ πto_ nano - snappy_
decompress_ πloki_ request - vrl_
metadata_ πto_ jsonb
Type AliasesΒ§
- Loki
Pipeline πMap