Skip to content

Commit

Permalink
Support dot (.) in metric name
Browse files Browse the repository at this point in the history
I'd like to update the regex in order to support dot in metric name. For example "cpu.usage.average".
  • Loading branch information
gcormier9 committed Jul 3, 2015
1 parent fc81cda commit 4a9949e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/app/plugins/datasource/opentsdb/datasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4a9949e

Please sign in to comment.