Some fixes related to OpenTSDB enhancements, #1250

This commit is contained in:
Torkel Ödegaard 2015-07-02 10:04:15 +02:00
parent 8ed0df64c7
commit 5494be4493
3 changed files with 3 additions and 2 deletions

View File

@ -27,6 +27,7 @@ function (angular, _, kbn) {
var qs = []; var qs = [];
_.each(options.targets, function(target) { _.each(options.targets, function(target) {
if (!target.metric) { return; }
qs.push(convertTargetToQuery(target, options)); qs.push(convertTargetToQuery(target, options));
}); });

View File

@ -55,7 +55,7 @@
placeholder="metric name" placeholder="metric name"
data-min-length=0 data-items=100 data-min-length=0 data-items=100
ng-model-onblur ng-model-onblur
ng-blur="targetBlur()" ng-change="targetBlur()"
> >
<a bs-tooltip="target.errors.metric" <a bs-tooltip="target.errors.metric"
style="color: rgb(229, 189, 28)" style="color: rgb(229, 189, 28)"

View File

@ -47,7 +47,7 @@ function (angular, _, kbn) {
}; };
$scope.suggestMetrics = function(query, callback) { $scope.suggestMetrics = function(query, callback) {
$scope.datasource.metricFindQuery('metrics()') $scope.datasource.metricFindQuery('metrics(' + query + ')')
.then($scope.getTextValues) .then($scope.getTextValues)
.then(callback); .then(callback);
}; };