Commit bfd337dd by kay delaney Committed by GitHub

Datasource/CloudWatch: Correctly interpolate variables in CloudWatch Logs queries (#24619)

Closes #24603
parent 277aee86
...@@ -582,6 +582,9 @@ export class CloudWatchDatasource extends DataSourceApi<CloudWatchQuery, CloudWa ...@@ -582,6 +582,9 @@ export class CloudWatchDatasource extends DataSourceApi<CloudWatchQuery, CloudWa
if (makeReplacements) { if (makeReplacements) {
requestParams.queries.forEach(query => { requestParams.queries.forEach(query => {
if (query.hasOwnProperty('queryString')) {
query.queryString = this.replace(query.queryString, scopedVars, true);
}
query.region = this.replace(query.region, scopedVars, true, 'region'); query.region = this.replace(query.region, scopedVars, true, 'region');
query.region = this.getActualRegion(query.region); query.region = this.getActualRegion(query.region);
}); });
......
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