Commit 17492c09 by Carl Bergquist Committed by GitHub

Merge pull request #9752 from mtanda/cw_alias_fix

[bug fix] (cloudwatch) fix default alias format
parents 6292d7c2 4a63d696
......@@ -267,7 +267,10 @@ func parseQuery(model *simplejson.Json) (*CloudWatchQuery, error) {
period = int(d.Seconds())
}
alias := model.Get("alias").MustString("{{metric}}_{{stat}}")
alias := model.Get("alias").MustString()
if alias == "" {
alias = "{{metric}}_{{stat}}"
}
return &CloudWatchQuery{
Region: region,
......
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