mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Support dot (.) in metric name
I'd like to update the regex in order to support dot in metric name. For example "cpu.usage.average".
This commit is contained in:
@@ -144,7 +144,7 @@ function (angular, _, kbn) {
|
|||||||
|
|
||||||
var metrics_regex = /metrics\((.*)\)/;
|
var metrics_regex = /metrics\((.*)\)/;
|
||||||
var tag_names_regex = /tag_names\((.*)\)/;
|
var tag_names_regex = /tag_names\((.*)\)/;
|
||||||
var tag_values_regex = /tag_values\((\w+),\s?(\w+)/;
|
var tag_values_regex = /tag_values\((.*),\s?(.*)\)/;
|
||||||
|
|
||||||
var metrics_query = interpolated.match(metrics_regex);
|
var metrics_query = interpolated.match(metrics_regex);
|
||||||
if (metrics_query) {
|
if (metrics_query) {
|
||||||
|
|||||||
Reference in New Issue
Block a user