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/4cd99c834ad9e63258bc to your computer and use it in GitHub Desktop.
Save heinrichvk/4cd99c834ad9e63258bc to your computer and use it in GitHub Desktop.
getEntitiesForTags
<#assign servers = getEntitiesForTags("", "(app == '${app}' OR '${app}' == '' AND app != '') AND
(dc == '${dc}' OR '${dc}' == '' AND dc != '')") >
<#list servers as server>
[series]
label = ${server}
entity = ${server}
metric = physical_cpu_units_used
</#list>
<#assign servers = getEntitiesForTags("", "application = '${entity}'") >
<#list servers as server>
[series]
entity = ${server}
metric = physical_cpu_units_used
</#list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment