stats

package
v1.34.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 7 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.

func NewTallyReporter added in v1.9.0

func NewTallyReporter(scope tally.Scope) tchannel.StatsReporter

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.

Jump to

Keyboard shortcuts

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