Home

Awesome

SignalFX bridge for go-metrics

Build Status GoDoc

Simply use as follows

import (
	"time"

	signalfx "github.com/pascallouisperez/go-metrics-signalfx"
	metrics "github.com/rcrowley/go-metrics"
)

...

go signalfx.PublishToSignalFx(metrics.DefaultRegistry, "<auth_token>")

And you can also pass in a few options

go signalfx.PublishToSignalFx(metrics.DefaultRegistry, "<auth_token>", signalfx.Options{
	Logger: ...,
	Duration: ...,
	Verbose: true,
})