mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix default alias
This commit is contained in:
parent
e1765e360e
commit
4a63d696ff
@ -267,7 +267,10 @@ func parseQuery(model *simplejson.Json) (*CloudWatchQuery, error) {
|
|||||||
period = int(d.Seconds())
|
period = int(d.Seconds())
|
||||||
}
|
}
|
||||||
|
|
||||||
alias := model.Get("alias").MustString("{{metric}}_{{stat}}")
|
alias := model.Get("alias").MustString()
|
||||||
|
if alias == "" {
|
||||||
|
alias = "{{metric}}_{{stat}}"
|
||||||
|
}
|
||||||
|
|
||||||
return &CloudWatchQuery{
|
return &CloudWatchQuery{
|
||||||
Region: region,
|
Region: region,
|
||||||
|
Loading…
Reference in New Issue
Block a user