Skip to content

Instantly share code, notes, and snippets.

@heinrichvk
Last active August 29, 2015 14:23
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/b39aa1d9080f873af630 to your computer and use it in GitHub Desktop.
Save heinrichvk/b39aa1d9080f873af630 to your computer and use it in GitHub Desktop.
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