Documentation ¶
Index ¶
- Variables
- func DefaultMetricPrefix(name string, tags map[string]string) string
- func MetricWithPrefix(prefix, name string, tags map[string]string) string
- func NewStatsdReporter(addr, prefix string) (tchannel.StatsReporter, error)
- func NewStatsdReporterClient(client statsd.Statter) tchannel.StatsReporter
- func NewTallyReporter(scope tally.Scope) tchannel.StatsReporter
Constants ¶
This section is empty.
Variables ¶
var MetricKey = DefaultMetricPrefix
MetricKey is called to generate the statsd key for a given metric and tags.
Functions ¶
func DefaultMetricPrefix ¶
DefaultMetricPrefix is the default mapping for metrics to statsd keys. It uses a "tchannel" prefix for all stats.
func MetricWithPrefix ¶
MetricWithPrefix is the default mapping for metrics to statsd keys.
func NewStatsdReporter ¶
NewStatsdReporter returns a StatsReporter that reports to statsd on the given addr.
func NewStatsdReporterClient ¶
NewStatsdReporterClient returns a StatsReporter that reports stats to the given client.
func NewTallyReporter ¶ added in v1.9.0
NewTallyReporter takes a tally.Scope and wraps it so it ca be used as a StatsReporter. The list of metrics emitted is documented on: https://tchannel.readthedocs.io/en/latest/metrics/ The metrics emitted are similar to YARPC, the tags emitted are: source, dest, procedure, and retry-count.
Types ¶
This section is empty.