From 4e2d4c42f077ac5e18b08ef1d576db933acbcf3b Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 3 Nov 2022 10:09:47 -0400 Subject: [PATCH] fixed explain handlers for label- and lineformat (#58135) (#58151) (cherry picked from commit 4b1ddba0a8998884982d275e846ec4af6787a06f) Co-authored-by: Sven Grossmann --- .../plugins/datasource/loki/querybuilder/operations.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/app/plugins/datasource/loki/querybuilder/operations.ts b/public/app/plugins/datasource/loki/querybuilder/operations.ts index 1f03a4a6d46..fa05703b0a2 100644 --- a/public/app/plugins/datasource/loki/querybuilder/operations.ts +++ b/public/app/plugins/datasource/loki/querybuilder/operations.ts @@ -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. `, },