From 65f7b93e6b96a45771a29f4f119b5f092c437414 Mon Sep 17 00:00:00 2001 From: Gareth Dawson Date: Mon, 19 Dec 2022 14:32:51 +0000 Subject: [PATCH] Loki: Add format explanation to regex operations (#60518) * change explain messages for regex operations * update explain messages to use the more accurate RE2 --- public/app/plugins/datasource/loki/querybuilder/operations.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/datasource/loki/querybuilder/operations.ts b/public/app/plugins/datasource/loki/querybuilder/operations.ts index 72609bef1fd..07a58338f44 100644 --- a/public/app/plugins/datasource/loki/querybuilder/operations.ts +++ b/public/app/plugins/datasource/loki/querybuilder/operations.ts @@ -324,7 +324,7 @@ Example: \`\`error_level=\`level\` \`\` orderRank: LokiOperationOrder.LineFilters, renderer: getLineFilterRenderer('|~'), addOperationHandler: addLokiOperation, - explainHandler: (op) => `Return log lines that match regex \`${op.params[0]}\`.`, + explainHandler: (op) => `Return log lines that match a \`RE2\` regex pattern. \`${op.params[0]}\`.`, }, { id: LokiOperationId.LineMatchesRegexNot, @@ -346,7 +346,7 @@ Example: \`\`error_level=\`level\` \`\` orderRank: LokiOperationOrder.LineFilters, renderer: getLineFilterRenderer('!~'), addOperationHandler: addLokiOperation, - explainHandler: (op) => `Return log lines that does not match regex \`${op.params[0]}\`.`, + explainHandler: (op) => `Return log lines that doesn't match a \`RE2\` regex pattern. \`${op.params[0]}\`.`, }, { id: LokiOperationId.LineFilterIpMatches,