Collect Golang Runtime Metrics, outputting to a stats handler
Go
Latest commit 3af15b6 May 12, 2016 @bmhatfield Merge pull request #9 from lmonteleone/lmonteleone/flagtodisablestats
adds flag to toggle collecting runtime stats
Permalink
Failed to load latest commit information.
collector fix a minor typo May 5, 2016
.gitignore Initial commit Sep 1, 2014
LICENSE Initial commit Sep 1, 2014
README.md Add Readme.MD Aug 20, 2015
runstats.go adds flag to toggle stats publishing May 12, 2016
screenshot.png Add screenshot file Aug 20, 2015

README.md

go-runtime-metrics

Collect Golang Runtime Metrics, outputting to a stats handler (currently, statsd)

The intent of this library is to be a "side effect" import. You can kick off the collector merely by importing this into your main:

import _ "github.com/bmhatfield/go-runtime-metrics"

This library has a few optional flags it depends on. It won't be able to output stats until you call flag.Parse(), which is generally done in your func main() {}.

Once imported and running, you can expect a number of Go runtime metrics to be sent to statsd over UDP. An example of what this looks like:

Dashboard Screenshot