Skip to content

Instantly share code, notes, and snippets.

@sargun
Created September 24, 2012 09:03
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 sargun/3775030 to your computer and use it in GitHub Desktop.
Save sargun/3775030 to your computer and use it in GitHub Desktop.
for (GangliaHost GH : GC.getGangliaHosts().values())
{
final GangliaMetric hostmetric = GH.getGangliaMetric(metricName);
final Object metric = hostmetric.getValue();
if (metric instanceof Double)
{
metricarray.add(metric);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment