met

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package met provides a 12-factor convenience wrapper around instruments

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTags

func AddTags(tags ...string)

AddTags add tags to default registry

func Counter

func Counter(name string, tags []string) *instruments.Counter

func Gauge

func Gauge(name string, tags []string) *instruments.Gauge

func Hostname

func Hostname() string

Hostname returns the parsed hostname

func RatePerMin

func RatePerMin(name string, tags []string) *instruments.Rate

func RatePerSec

func RatePerSec(name string, tags []string) *instruments.Rate

func RateScale

func RateScale(name string, tags []string, d time.Duration) *instruments.Rate

func Reservoir

func Reservoir(name string, tags []string) *instruments.Reservoir

func Subscribe

func Subscribe(rep instruments.Reporter)

Subscribe attaches reporters/hooks to the met registry

func Timer

func Timer(name string, tags []string) *instruments.Timer

Types

This section is empty.

Directories

Path Synopsis
Package datadog reports metrics to datadog, if included.
Package datadog reports metrics to datadog, if included.
Package runtime collects runtime metrics, if included.
Package runtime collects runtime metrics, if included.

Jump to

Keyboard shortcuts

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