InfluxDB Filters: added filter to queries.

parent bfecb046
...@@ -60,6 +60,7 @@ function (angular, _, kbn) { ...@@ -60,6 +60,7 @@ function (angular, _, kbn) {
} }
query = queryElements.join(" "); query = queryElements.join(" ");
query = filterSrv.applyFilterToTarget(query);
} }
else { else {
var template = "select [[func]](\"[[column]]\") as \"[[column]]_[[func]]\" from [[series]] " + var template = "select [[func]](\"[[column]]\") as \"[[column]]_[[func]]\" from [[series]] " +
...@@ -79,6 +80,7 @@ function (angular, _, kbn) { ...@@ -79,6 +80,7 @@ function (angular, _, kbn) {
}; };
query = _.template(template, templateData, this.templateSettings); query = _.template(template, templateData, this.templateSettings);
query = filterSrv.applyFilterToTarget(query);
target.query = query; target.query = query;
} }
......
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