loki_datasource: add documentation to label_format and line_format (#31710)

* add documentation to label_format and line_format

* fix linting

* Remove extra space
This commit is contained in:
Caleb Collins-Parks 2021-03-05 14:27:14 -08:00 committed by GitHub
parent e23bae5ec5
commit 0b6b8de6f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,12 +79,14 @@ export const PIPE_OPERATORS: CompletionItem[] = [
{
label: 'label_format',
insertText: 'label_format',
documentation: 'Only available in Loki 2.0+.',
documentation:
'Use to rename, modify or add labels. For example, | label_format foo=bar . Only available in Loki 2.0+.',
},
{
label: 'line_format',
insertText: 'line_format',
documentation: 'Only available in Loki 2.0+.',
documentation:
'Rewrites log line content. For example, | line_format "{{.query}} {{.duration}}" . Only available in Loki 2.0+.',
},
];