diff --git a/public/app/plugins/datasource/opentsdb/partials/query.editor.html b/public/app/plugins/datasource/opentsdb/partials/query.editor.html
index 5ab9f226dc3..8a3c0c0f753 100644
--- a/public/app/plugins/datasource/opentsdb/partials/query.editor.html
+++ b/public/app/plugins/datasource/opentsdb/partials/query.editor.html
@@ -118,8 +118,11 @@
Tags
- {{key}} = {{value}}
-
+ {{key}} = {{value}}
+
+
+
+
diff --git a/public/app/plugins/datasource/opentsdb/queryCtrl.js b/public/app/plugins/datasource/opentsdb/queryCtrl.js
index 94b2cbee8fa..8af3af206b6 100644
--- a/public/app/plugins/datasource/opentsdb/queryCtrl.js
+++ b/public/app/plugins/datasource/opentsdb/queryCtrl.js
@@ -86,6 +86,13 @@ function (angular, _, kbn) {
$scope.targetBlur();
};
+ $scope.editTag = function(key, value) {
+ $scope.removeTag(key);
+ $scope.target.currentTagKey = key;
+ $scope.target.currentTagValue = value;
+ $scope.addTag();
+ };
+
function validateTarget(target) {
var errs = {};