mirror of
https://github.com/grafana/grafana.git
synced 2025-01-18 12:33:37 -06:00
loki: better unpack handling (#49074)
This commit is contained in:
parent
d8d7b3ec9d
commit
b54817033a
@ -72,6 +72,13 @@ export const PIPE_PARSERS: CompletionItem[] = [
|
|||||||
insertText: 'pattern',
|
insertText: 'pattern',
|
||||||
documentation: 'Extracting labels from the log line using pattern parser. Only available in Loki 2.3+.',
|
documentation: 'Extracting labels from the log line using pattern parser. Only available in Loki 2.3+.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'unpack',
|
||||||
|
insertText: 'unpack',
|
||||||
|
detail: 'unpack identifier',
|
||||||
|
documentation:
|
||||||
|
'Parses a JSON log line, unpacking all embedded labels in the pack stage. A special property "_entry" will also be used to replace the original log line. Only available in Loki 2.2+.',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const PIPE_OPERATORS: CompletionItem[] = [
|
export const PIPE_OPERATORS: CompletionItem[] = [
|
||||||
@ -82,13 +89,6 @@ export const PIPE_OPERATORS: CompletionItem[] = [
|
|||||||
documentation:
|
documentation:
|
||||||
'Take labels and use the values as sample data for metric aggregations. Only available in Loki 2.0+.',
|
'Take labels and use the values as sample data for metric aggregations. Only available in Loki 2.0+.',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: 'unpack',
|
|
||||||
insertText: 'unpack',
|
|
||||||
detail: 'unpack identifier',
|
|
||||||
documentation:
|
|
||||||
'Parses a JSON log line, unpacking all embedded labels in the pack stage. A special property "_entry" will also be used to replace the original log line. Only available in Loki 2.0+.',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: 'label_format',
|
label: 'label_format',
|
||||||
insertText: 'label_format',
|
insertText: 'label_format',
|
||||||
|
Loading…
Reference in New Issue
Block a user