github.com/urjitbhatia/gomon

A module that helps monitor runtime stats for go applications. Various adapter can be used to report these stats to librator, stdout etc


License
MIT
Install
go get github.com/urjitbhatia/gomon

Documentation

GOMON is a package that you can drop into your go application for monitoring common runtime stats.

Design Considerations:

  • Log runtime stats
  • Take logging/reporting adaptors so that these stats can be reported as metrics

Some stat collection will cause a performance hit (like GC etc)

Usage:

import "github.com/urjitbhatia/gomon"
...

func monitorSystem() {
    mon := gomon.New()
    mon.CaptureGoRoutineStats()
    mon.Start()
}