CloudWatch: Multi-valued template variable dimension alias fix (#21541)
* Match dimension value with label substring * Add unit tests
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user