Last active
September 9, 2015 10:06
-
-
Save heinrichvk/de95557d743b0129f519 to your computer and use it in GitHub Desktop.
getMetrics2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#assign metrics = getMetrics("${entity}") > | |
<#list metrics as metric> | |
<#if metric?index_of("cpu") gte 0> | |
[widget] | |
type = chart | |
timespan = 1 hour | |
[series] | |
label = ${metric} | |
entity = ${entity} | |
metric = ${metric} | |
statistic = avg | |
period = 5 minute | |
</#if> | |
</#list> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment