mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
Merge pull request #9753 from mtanda/cw_period
(cloudwatch) add period alias
This commit is contained in:
commit
c783bdac39
@ -287,6 +287,7 @@ func formatAlias(query *CloudWatchQuery, stat string, dimensions map[string]stri
|
|||||||
data["namespace"] = query.Namespace
|
data["namespace"] = query.Namespace
|
||||||
data["metric"] = query.MetricName
|
data["metric"] = query.MetricName
|
||||||
data["stat"] = stat
|
data["stat"] = stat
|
||||||
|
data["period"] = strconv.Itoa(query.Period)
|
||||||
for k, v := range dimensions {
|
for k, v := range dimensions {
|
||||||
data[k] = v
|
data[k] = v
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
<li>{{stat}}</li>
|
<li>{{stat}}</li>
|
||||||
<li>{{namespace}}</li>
|
<li>{{namespace}}</li>
|
||||||
<li>{{region}}</li>
|
<li>{{region}}</li>
|
||||||
|
<li>{{period}}</li>
|
||||||
<li>{{YOUR_DIMENSION_NAME}}</li>
|
<li>{{YOUR_DIMENSION_NAME}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</info-popover>
|
</info-popover>
|
||||||
|
Loading…
Reference in New Issue
Block a user