statsd

package
v0.0.0-...-78c7f4a Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(conf *config.AgentConfig) error

Configure creates a statsd client from a dogweb.ini style config file and set it to the global Statsd.

Types

type StatsClient

type StatsClient interface {
	Gauge(name string, value float64, tags []string, rate float64) error
	Count(name string, value int64, tags []string, rate float64) error
	Histogram(name string, value float64, tags []string, rate float64) error
}

StatsClient represents a client capable of sending stats to some stat endpoint.

var Client StatsClient = (*statsd.Client)(nil)

Client is a global Statsd client. When a client is configured via Configure, that becomes the new global Statsd client in the package.

Jump to

Keyboard shortcuts

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