mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: Add format explanation to regex operations (#60518)
* change explain messages for regex operations * update explain messages to use the more accurate RE2
This commit is contained in:
parent
da6f4067f7
commit
65f7b93e6b
@ -324,7 +324,7 @@ Example: \`\`error_level=\`level\` \`\`
|
|||||||
orderRank: LokiOperationOrder.LineFilters,
|
orderRank: LokiOperationOrder.LineFilters,
|
||||||
renderer: getLineFilterRenderer('|~'),
|
renderer: getLineFilterRenderer('|~'),
|
||||||
addOperationHandler: addLokiOperation,
|
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,
|
id: LokiOperationId.LineMatchesRegexNot,
|
||||||
@ -346,7 +346,7 @@ Example: \`\`error_level=\`level\` \`\`
|
|||||||
orderRank: LokiOperationOrder.LineFilters,
|
orderRank: LokiOperationOrder.LineFilters,
|
||||||
renderer: getLineFilterRenderer('!~'),
|
renderer: getLineFilterRenderer('!~'),
|
||||||
addOperationHandler: addLokiOperation,
|
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,
|
id: LokiOperationId.LineFilterIpMatches,
|
||||||
|
Loading…
Reference in New Issue
Block a user