Better monitoring of what workflows are starting

Answering my own comment here, make sure to attach a metrics reporter to get this insight:

statter, err := statsd.NewClientWithConfig(&statsd.ClientConfig{
	Address:       "your address",
	Prefix:        "your prefix",
	UseBuffered:   true,
	FlushInterval: 100 * time.Millisecond,
	FlushBytes:    1440,
})
if err != nil {
	return tally.NoopScope, ioutil.NopCloser(bytes.NewBuffer([]byte{})), err
}

reporter := tallystatsd.NewReporter(statter, tallystatsd.Options{
	SampleRate: 1.0,
})

scope, closer := tally.NewRootScope(tally.ScopeOptions{
	Prefix: appName,
	Tags: map[string]string{},
	Reporter:        reporter,
	SanitizeOptions: &sanitizeOptions,
}, time.Second)
2 Likes