Quantcast
Channel: THWACK: All Content - Server & Application Monitor
Viewing all articles
Browse latest Browse all 12281

Perform calculation from statistics from two SAM components in an alert, or in application?

$
0
0

I have a working SAM application (based off of a JBOSS JMX template) that contains several components that each contains a numeric value as a statistic.  Specifically, I am interested in the percentage of available threads so that I can use Advanced Alert Manager to alert when the percentage gets too low.  I do not have a component that returns the percentage of available threads, but I do have two that I can use to calculate it.  I have components for Active threads, and I have a component for Max threads.  By dividing the two, I can get the percentage.

 

I tried to find a way that I could perform this calculation in Advanced Alert Manager, but I could not find how to do it.  Of course I could hardcode a value and alert if the number of Active threads gets too high, but I would rather do the calculation to make the alter more flexible.

Is there a way to perform a calculation of statistics from two component in an alert?

 

Another solution would be to create a new component in the application, and somehow do the math there.  Again, I could not determine how to take the statistic values from two components in an application and divide them in a third.

Is there a way to perform a calculation of statistics from two component in third component in an Application?

 

Thanks.

Adam


Viewing all articles
Browse latest Browse all 12281

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>