yaorg / node-measured

A Node metrics library for measuring and reporting application-level metrics, inspired by Coda Hale, Yammer Inc's Dropwizard Metrics Libraries
https://yaorg.github.io/node-measured/
MIT License
517 stars 52 forks source link

Add clear to Histogram metric #3

Closed mbrevoort closed 12 years ago

mbrevoort commented 12 years ago

I'm curious why there is not a clear or reset function on the histogram. If you are periodically taking a snapshot to publish to graphite, etc., wouldn't you want to reset the counts and such?

Curious, what are you doing now for transloadit?

felixge commented 12 years ago

You would not want to reset the values if you are periodically reporting to graphite. That being said, I implemented reset() for completeness. I'll rename the clear() methods elsewhere with reset().