Your data. Anywhere you go.

New Relic for iOS or Android

Download on the App Store    Android App on Google play

New Relic Insights App for iOS

Download on the App Store

Learn more

Close icon

Standard deviation calculation algorithm for custom metrics




I’m pretty new to New Relic and I’m setting a custom metric to measure the time it takes SQS API to put a message on the Queue in Java like so:

        toIntExact(afterSqsSendTimestamp - beforeSqsSendTimestamp));

After calling the method a few times, my dashboard displays something like this:

If within 1 minute setting this metric is called 2 times (call count = 2) with values of 8 (min) and 88 (max), I would expect the std dev to be 40 (

For some reason Std dev in this particular case is 36600 ms. I’m assuming that since the unit here is ms, this is the value of something totally different than the standard deviation based on the custom metric values. Can you please help me what this value actually represents and is it possible for new relic to display actual standard deviation value for my metric?

Thank you for any help.

Best regards.


Hmm, that does absolutely seem strange. I would expect 40 for this too.

I think to get to the bottom of this we’ll need to have a conversation with the development team handling that calculation. So I’ll open a ticket for you - where my colleagues in Support can work with you & discuss with the engineering team.


Thanks Ryan,

I’m pursuing this as a support ticket, once i know more I’ll update this thread with a resolution in case other people have the same issue.


Excellent! thank you Lukasz.