Skip to content

Package memstatsd implements a worker that sends the runtime.MemStats values and their diffs to a statsd server.

Notifications You must be signed in to change notification settings

zenhotels/memstatsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

memstatsd

Package memstatsd implements a simple to use reporting tool that sends actual runtime.MemStats values and their diffs to a statsd server.

Example

type statter struct{}

func (s statter) Timing(bucket string, d time.Duration) {
    fmt.Println(bucket, d)
}

func (s statter) Gauge(bucket string, value int) {
    fmt.Println(bucket, value)
}

func TestMemstatsd(t *testing.T) {
    msd := New("memstatsd.test.", statter{}, true)
    msd.Run(5 * time.Second)

    time.Sleep(time.Minute)
}

About

Package memstatsd implements a worker that sends the runtime.MemStats values and their diffs to a statsd server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages