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:
gcormier9 2015-07-03 15:57:46 -04:00
parent fc81cda971
commit 4a9949e643
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ function (angular, _, kbn) {
var metrics_regex = /metrics\((.*)\)/;
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);
if (metrics_query) {