From 08af07de0c68a20a71e0a6bf592db5c6d687baec Mon Sep 17 00:00:00 2001 From: Vadim Gusev Date: Fri, 21 Dec 2018 14:53:29 +0300 Subject: [PATCH] Fix wrong variable expansion format Fixes #13 --- src/datasource.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datasource.ts b/src/datasource.ts index aa58570..f50db05 100644 --- a/src/datasource.ts +++ b/src/datasource.ts @@ -47,7 +47,7 @@ export default class InfluxDatasource { // Replace grafana variables const timeFilter = this.getTimeFilter(options); options.scopedVars.range = {value: timeFilter}; - const interpolated = this.templateSrv.replace(target.query, options.scopedVars); + const interpolated = this.templateSrv.replace(target.query, options.scopedVars, 'pipe'); return { ...target, query: interpolated,