beberlei / metrics

Simple library that abstracts different metrics collectors. I find this necessary to have a consistent and simple metrics (functional) API that doesn't cause vendor lock-in.
316 stars 38 forks source link

Added in memory collector #56

Closed baartosz closed 7 years ago

baartosz commented 7 years ago

Hi. I needed to measure processes' metrics and retrieve them in same request/run and hook it up with existing storing procedures. It will be useful to stick to same interface later when we will move that outside to graphite or something. I think it may be useful for others too in some cases.

baartosz commented 7 years ago

Thanks for feedback. Updated PR. A bit tricky is that gauge cannot be set to negative value without setting it to 0 first according to https://github.com/etsy/statsd/blob/master/docs/metric_types.md#gauges

lyrixx commented 7 years ago

Thanks for your work on this new feature!