Commit 02861142 by Max Stepanov

Replace all $interval occurrences in query string

because template
parent 1cfc4d2f
...@@ -44,7 +44,7 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) { ...@@ -44,7 +44,7 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) {
// replace grafana variables // replace grafana variables
query = query.replace('$timeFilter', timeFilter); query = query.replace('$timeFilter', timeFilter);
query = query.replace('$interval', (target.interval || options.interval)); query = query.replace(/\$interval/g, (target.interval || options.interval));
// replace templated variables // replace templated variables
query = templateSrv.replace(query); query = templateSrv.replace(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