mirror of https://github.com/grafana/grafana.git
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:
parent
fc81cda971
commit
4a9949e643
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue