From 0f87279ab82b15cc4511680a5decbea8f419c266 Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Tue, 17 Oct 2017 18:11:21 +0900 Subject: [PATCH] fix template variable expanding --- public/app/plugins/datasource/cloudwatch/datasource.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/plugins/datasource/cloudwatch/datasource.js b/public/app/plugins/datasource/cloudwatch/datasource.js index 8037cafb3e6..d169cf56edf 100644 --- a/public/app/plugins/datasource/cloudwatch/datasource.js +++ b/public/app/plugins/datasource/cloudwatch/datasource.js @@ -354,6 +354,7 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) { var t = angular.copy(target); var scopedVar = {}; scopedVar[variable.name] = v; + t.refId = target.refId + '_' + v.value; t.dimensions[dimensionKey] = templateSrv.replace(t.dimensions[dimensionKey], scopedVar); return t; }).value();