Commit 91e201ff by olshansky

fix: label values regex for single letter labels

Closes: #13641
parent 4fefb203
...@@ -12,7 +12,7 @@ export default class PrometheusMetricFindQuery { ...@@ -12,7 +12,7 @@ export default class PrometheusMetricFindQuery {
} }
process() { process() {
const labelValuesRegex = /^label_values\((?:(.+),\s*)?([a-zA-Z_][a-zA-Z0-9_]+)\)\s*$/; const labelValuesRegex = /^label_values\((?:(.+),\s*)?([a-zA-Z_][a-zA-Z0-9_]*)\)\s*$/;
const metricNamesRegex = /^metrics\((.+)\)\s*$/; const metricNamesRegex = /^metrics\((.+)\)\s*$/;
const queryResultRegex = /^query_result\((.+)\)\s*$/; const queryResultRegex = /^query_result\((.+)\)\s*$/;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment