mikejihbe / metrics

A metrics library for Node.js
574 stars 58 forks source link

Standard deviation is Nan #51

Open nickcodefresh opened 6 years ago

nickcodefresh commented 6 years ago

My service is outputting metrics to Grafana but it's end points are never called. What I'm finding is that the standard deviation value is NaN, output via:

send(util.format('%s.%s', histogram.name, 'stddev'), histogram.stdDev(), timestamp);

in graphite-reporter.js. I suspect this should output zero.