CloudWatch: Use default alias if there is no alias for metrics (#16732)
Fixes #16605
(cherry picked from commit 89a01a680c)
This commit is contained in:
committed by
bergquist
parent
e097fb1166
commit
c9e67140cc
@@ -546,6 +546,10 @@ func formatAlias(query *CloudWatchQuery, stat string, dimensions map[string]stri
|
||||
return in
|
||||
})
|
||||
|
||||
if string(result) == "" {
|
||||
return metricName + "_" + stat
|
||||
}
|
||||
|
||||
return string(result)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user