fixed explain handlers for label- and lineformat (#58135) (#58151)

(cherry picked from commit 4b1ddba0a8)

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-11-03 10:09:47 -04:00
committed by GitHub
co-authored by Sven Grossmann
parent ac66ba77da
commit 4e2d4c42f0
@@ -188,9 +188,9 @@ export function getOperationDefinitions(): QueryBuilderOperationDef[] {
explainHandler: () =>
`This will replace log line using a specified template. The template can refer to stream labels and extracted labels.
Example: \`{{.status_code}} - {{.message}}\`
Example: \`{{.status_code}} - {{.message}}\`
[Read the docs](https://grafana.com/docs/loki/latest/logql/log_queries/#line-format-expression) for more.
[Read the docs](https://grafana.com/docs/loki/latest/logql/log_queries/#line-format-expression) for more.
`,
},
{
@@ -209,9 +209,9 @@ export function getOperationDefinitions(): QueryBuilderOperationDef[] {
explainHandler: () =>
`This will change name of label to desired new label. In the example below, label "error_level" will be renamed to "level".
Example: error_level=\`level\`
Example: \`\`error_level=\`level\` \`\`
[Read the docs](https://grafana.com/docs/loki/latest/logql/log_queries/#labels-format-expression) for more.
[Read the docs](https://grafana.com/docs/loki/latest/logql/log_queries/#labels-format-expression) for more.
`,
},