diff --git a/public/app/plugins/datasource/opentsdb/datasource.js b/public/app/plugins/datasource/opentsdb/datasource.js index fe6bc5a07db..baf05d8d0dc 100644 --- a/public/app/plugins/datasource/opentsdb/datasource.js +++ b/public/app/plugins/datasource/opentsdb/datasource.js @@ -27,6 +27,7 @@ function (angular, _, kbn) { var qs = []; _.each(options.targets, function(target) { + if (!target.metric) { return; } qs.push(convertTargetToQuery(target, options)); }); diff --git a/public/app/plugins/datasource/opentsdb/partials/query.editor.html b/public/app/plugins/datasource/opentsdb/partials/query.editor.html index a5478ff0cc3..0e456a29b8b 100644 --- a/public/app/plugins/datasource/opentsdb/partials/query.editor.html +++ b/public/app/plugins/datasource/opentsdb/partials/query.editor.html @@ -55,7 +55,7 @@ placeholder="metric name" data-min-length=0 data-items=100 ng-model-onblur - ng-blur="targetBlur()" + ng-change="targetBlur()" >