Awesome
cloudmetrics
This is a reporter for the go-metrics that will posts metrics to CloudWatch.
Usage
import "github.com/savaki/cloudmetrics"
go cloudmetrics.Publish(metrics.DefaultRegistry,
"/sample/", // namespace
)
Configuration
cloudmetrics supports a number of configuration options
import "github.com/savaki/cloudmetrics"
go cloudmetrics.Publish(metrics.DefaultRegistry,
"/sample/", // namespace
cloudmetrics.Dimensions("k1", "v1", "k2", "v2"), // allows for custom dimensions
cloudmetrics.Interval(time.Minutes * 5), // custom interval
cloudmetrics.Context(context.Background()), // enables graceful shutdown via golang.org/x/net/context
cloudmetrics.Percentiles([]float64{.5, .99}), // customize percentiles for histograms and timers
)