From 86ca7ddda4eea68852dd575e075c1407b79b1e96 Mon Sep 17 00:00:00 2001 From: Utkarsh Bhatnagar Date: Mon, 24 Oct 2016 00:15:19 -0700 Subject: [PATCH] Added explicitTags support for OpenTSDB>=2.3 (#6361) --- public/app/plugins/datasource/opentsdb/datasource.js | 4 ++++ .../plugins/datasource/opentsdb/partials/query.editor.html | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/public/app/plugins/datasource/opentsdb/datasource.js b/public/app/plugins/datasource/opentsdb/datasource.js index d5034ce271f..4ef7c9761fe 100644 --- a/public/app/plugins/datasource/opentsdb/datasource.js +++ b/public/app/plugins/datasource/opentsdb/datasource.js @@ -425,6 +425,10 @@ function (angular, _, dateMath) { } } + if (target.explicitTags) { + query.explicitTags = true; + } + return query; } diff --git a/public/app/plugins/datasource/opentsdb/partials/query.editor.html b/public/app/plugins/datasource/opentsdb/partials/query.editor.html index 255e23c5701..a2db8a68840 100644 --- a/public/app/plugins/datasource/opentsdb/partials/query.editor.html +++ b/public/app/plugins/datasource/opentsdb/partials/query.editor.html @@ -249,6 +249,11 @@ +
+ + +
+