Skip to content

Instantly share code, notes, and snippets.

@heinrichvk
Last active September 9, 2015 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heinrichvk/de95557d743b0129f519 to your computer and use it in GitHub Desktop.
Save heinrichvk/de95557d743b0129f519 to your computer and use it in GitHub Desktop.
getMetrics2
<#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