package stats
import "github.com/uber/tchannel-go/stats"
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
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.
Source Files ¶
metrickey.go statsdreporter.go
- Version
- v1.8.0
- Published
- Nov 7, 2017
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 1 month ago –
Tools for package owners.