mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CloudWatch: Use default alias if there is no alias for metrics (#16732)
Fixes #16605
This commit is contained in:
parent
fca5ee4bea
commit
89a01a680c
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user