CloudWatch: Use default alias if there is no alias for metrics (#16732)

Fixes #16605
(cherry picked from commit 89a01a680c)
This commit is contained in:
Utkarsh Bhatnagar
2019-04-29 14:45:35 +02:00
committed by bergquist
parent e097fb1166
commit c9e67140cc
+4
View File
@@ -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)
}