Commit 5494be44 by Torkel Ödegaard

Some fixes related to OpenTSDB enhancements, #1250

parent 8ed0df64
......@@ -27,6 +27,7 @@ function (angular, _, kbn) {
var qs = [];
_.each(options.targets, function(target) {
if (!target.metric) { return; }
qs.push(convertTargetToQuery(target, options));
});
......
......@@ -55,7 +55,7 @@
placeholder="metric name"
data-min-length=0 data-items=100
ng-model-onblur
ng-blur="targetBlur()"
ng-change="targetBlur()"
>
<a bs-tooltip="target.errors.metric"
style="color: rgb(229, 189, 28)"
......
......@@ -47,7 +47,7 @@ function (angular, _, kbn) {
};
$scope.suggestMetrics = function(query, callback) {
$scope.datasource.metricFindQuery('metrics()')
$scope.datasource.metricFindQuery('metrics(' + query + ')')
.then($scope.getTextValues)
.then(callback);
};
......
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