CloudWatch: Multi-valued template variable dimension alias fix (#21541)

* Match dimension value with label substring

* Add unit tests
This commit is contained in:
Erik Sundell
2020-01-17 12:47:40 +01:00
committed by GitHub
parent e7e0d18bc8
commit b398bc592b
2 changed files with 167 additions and 1 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ func parseGetMetricDataTimeSeries(metricDataResults map[string]*cloudwatch.Metri
series.Tags[key] = values[0]
} else {
for _, value := range values {
if value == label || value == "*" {
if value == label || value == "*" || strings.Contains(label, value) {
series.Tags[key] = label
}
}