mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
e113a40142
Loki protocol supports optional `metadata` object for each ingested line. It's added as 3rd field at the (ts,msg,metadata) tuple. Previously, loki request json parsers rejected log line if tuple size != 2.
This commit allows optional tuple field. It parses it as json object and adds it as log metadata fields to the log message stream.
related issue:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7431
---------
Co-authored-by: f41gh7 <nik@victoriametrics.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
loki.go | ||
loki_json.go | ||
loki_json_test.go | ||
loki_json_timing_test.go | ||
loki_protobuf.go | ||
loki_protobuf_test.go | ||
loki_protobuf_timing_test.go | ||
pb.go |