File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
public/app/plugins/datasource/influxdb Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,13 @@ export default class InfluxQuery {
162
162
return str + '"' + tag . key + '" ' + operator + ' ' + value ;
163
163
}
164
164
165
- getMeasurementAndPolicy ( ) {
165
+ getMeasurementAndPolicy ( interpolate ) {
166
166
var policy = this . target . policy ;
167
167
var measurement = this . target . measurement ;
168
168
169
169
if ( ! measurement . match ( '^/.*/' ) ) {
170
170
measurement = '"' + measurement + '"' ;
171
- } else {
171
+ } else if ( interpolate ) {
172
172
measurement = this . templateSrv . replace ( measurement , this . scopedVars , 'regex' ) ;
173
173
}
174
174
@@ -212,7 +212,7 @@ export default class InfluxQuery {
212
212
query += selectText ;
213
213
}
214
214
215
- query += ' FROM ' + this . getMeasurementAndPolicy ( ) + ' WHERE ' ;
215
+ query += ' FROM ' + this . getMeasurementAndPolicy ( interpolate ) + ' WHERE ' ;
216
216
var conditions = _ . map ( target . tags , ( tag , index ) => {
217
217
return this . renderTagCondition ( tag , index , interpolate ) ;
218
218
} ) ;
You can’t perform that action at this time.
0 commit comments