Commit 89a01a68 by Utkarsh Bhatnagar Committed by Marcus Efraimsson

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

Fixes #16605
parent fca5ee4b
...@@ -228,5 +228,9 @@ func formatAlias(query *CloudWatchQuery, stat string, dimensions map[string]stri ...@@ -228,5 +228,9 @@ func formatAlias(query *CloudWatchQuery, stat string, dimensions map[string]stri
return in return in
}) })
if string(result) == "" {
return metricName + "_" + stat
}
return string(result) return string(result)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment