Skip to content

Instantly share code, notes, and snippets.

@heinrichvk heinrichvk/getTags1
Last active Aug 29, 2015

Embed
What would you like to do?
getTags
<#assign cpus = getTags("nmon.cpu.idle%", "${entity}", "id") >
<#list cpus as id>
[series]
label = ${id}
entity = ${entity}
metric = nmon.cpu.busy%
#type = avg
#interval = 5 minute
[tag]
name = id
value = ${id}
</#list>
<#assign file_systems = getTags("nmon.disk_%busy", "${entity}", "id") >
<#list file_systems as id>
<#if id == 'xda111' || id == 'total'>
<#else>
[series]
label = ${id}
entity = ${entity}
metric = nmon.disk_%busy
[tag]
name = id
value = ${id}
</#if>
</#list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.