Skip to main content

Module loki

Module loki 

Source

StructsΒ§

JsonStreamItem πŸ”’
LOKI_INIT_SCHEMAS πŸ”’
LokiJsonParser πŸ”’
LokiMiddleItem
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.
LokiPbParser
LokiPipeline
This is the line item prepared for the pipeline engine.
LokiPipelineContextReq πŸ”’
LokiRawItem
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.
PbStreamItem

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Β§

LokiPipelineMap πŸ”’