Documentation ¶
Overview ¶
Package met provides a 12-factor convenience wrapper around instruments
Index ¶
- func AddTags(tags ...string)
- func Counter(name string, tags []string) *instruments.Counter
- func Gauge(name string, tags []string) *instruments.Gauge
- func Hostname() string
- func RatePerMin(name string, tags []string) *instruments.Rate
- func RatePerSec(name string, tags []string) *instruments.Rate
- func RateScale(name string, tags []string, d time.Duration) *instruments.Rate
- func Reservoir(name string, tags []string) *instruments.Reservoir
- func Subscribe(rep instruments.Reporter)
- func Timer(name string, tags []string) *instruments.Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RatePerMin ¶
func RatePerMin(name string, tags []string) *instruments.Rate
func RatePerSec ¶
func RatePerSec(name string, tags []string) *instruments.Rate
func Subscribe ¶
func Subscribe(rep instruments.Reporter)
Subscribe attaches reporters/hooks to the met registry
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.