Send your go-metrics stats to StatHat
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A stathat sender for go-metrics


You will need to get an EZ Key from your settings page.

Create and update metrics on stathat:

import (
	""           // to get the "metrics" namespace
	"" // to get the "metricsstathat" namespace

// use this registry as you would normally using go-metrics
reg := metrics.NewRegistry()

// every 60 seconds, log all metrics that have been added to the provied registry to stathat
go metricsstathat.StatHat(reg, 60, "MYEZKEY")


Uses so you'll need to install it. Obviously, you'll have to be using go-metrics as well.

go get // you should already have this
go get
go get