Commit 4a9949e6 by gcormier9

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".
parent fc81cda9
......@@ -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) {
......
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