segmentio / stats

Go package for abstracting stats collection
https://godoc.org/github.com/segmentio/stats
MIT License
208 stars 32 forks source link

normalize CPU usage metrics #96

Closed achille-roussel closed 5 years ago

achille-roussel commented 5 years ago

This PR adds the CPU period, quota, and shares to the info reported by the procstats package, and uses it to normalize the CPU usage metrics.

I've also spent a bit of time cleaning up parts of the code, this package was almost two years old and deserved a bit of love.

Please take a look and let me know if anything should be changed.