stats

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

MetricKey is called to generate the statsd key for a given metric and tags.

Functions

func DefaultMetricPrefix

func DefaultMetricPrefix(name string, tags map[string]string) string

DefaultMetricPrefix is the default mapping for metrics to statsd keys. It uses a "tchannel" prefix for all stats.

func MetricWithPrefix

func MetricWithPrefix(prefix, name string, tags map[string]string) string

MetricWithPrefix is the default mapping for metrics to statsd keys.

func NewStatsdReporter

func NewStatsdReporter(addr, prefix string) (tchannel.StatsReporter, error)

NewStatsdReporter returns a StatsReporter that reports to statsd on the given addr.

func NewStatsdReporterClient

func NewStatsdReporterClient(client statsd.Statter) tchannel.StatsReporter

NewStatsdReporterClient returns a StatsReporter that reports stats to the given client.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL