statsd

package
v0.0.0-...-d0c200b Latest Latest
Warning

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

Go to latest
Published: May 23, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Inc(stat string)
	Timing(stat string, d time.Duration)
}

Client is the statsd interface that we use.

var Noop Client = client{ensureStatsd(statsd.NewNoopClient())}

Noop is a no-op statsd client.

func NewClient

func NewClient(statsdHostPort, service, method string) (Client, error)

NewClient returns a Client that sends metrics to statsd.

Jump to

Keyboard shortcuts

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