Java (Java Agent, Installation, JVM, and Controller Installation)

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a metric for the difference between two JMX values

Builder

Creating a metric for the difference between two JMX values

Hi all,

 

I have a 3rd party library that exposes metrics via JMX.  Unfortunately some of them are simple counters: values that start at 0 and go up and up as the app runs.  Over time, the numbers get so big that looking at a graph over a short time period isn't useful because I can't see small changes in big numbers.  What I really want is the difference in the value over consecutive time periods.  That is, if the value was 1,000,000 a minute ago and is 1,000,037 now, I want 37 displayed/recorded.

 

I don't see anything like this in the docs.  Is it possible?

 

Thanks

Creating a metric for the difference between two JMX values