cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating a metric for the difference between two JMX values

John.Gregg
Architect

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

1 REPLY 1

Toby.Davies
Creator

When configuring a JMX metric, there is an option to use the delta between this and the last value; is this a fix for your user case?

 

 

deltajmx.PNG