statsd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Prefix is appended to each metric event name
	Prefix = "pilosa."

	// BufferLen Stats lient buffer size.
	BufferLen = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsClient

type StatsClient struct {
	// contains filtered or unexported fields
}

StatsClient represents a StatsD implementation of pilosa.StatsClient.

func NewStatsClient

func NewStatsClient(host string) (*StatsClient, error)

NewStatsClient returns a new instance of StatsClient.

func (*StatsClient) Close

func (c *StatsClient) Close() error

Close closes the connection to the agent.

func (*StatsClient) Count

func (c *StatsClient) Count(name string, value int64, rate float64)

Count tracks the number of times something occurs per second.

func (*StatsClient) CountWithCustomTags

func (c *StatsClient) CountWithCustomTags(name string, value int64, rate float64, t []string)

CountWithCustomTags tracks the number of times something occurs per second with custom tags.

func (*StatsClient) Gauge

func (c *StatsClient) Gauge(name string, value float64, rate float64)

Gauge sets the value of a metric.

func (*StatsClient) Histogram

func (c *StatsClient) Histogram(name string, value float64, rate float64)

Histogram tracks statistical distribution of a metric.

func (*StatsClient) Set

func (c *StatsClient) Set(name string, value string, rate float64)

Set tracks number of unique elements.

func (*StatsClient) SetLogger

func (c *StatsClient) SetLogger(logger io.Writer)

SetLogger has no logger

func (*StatsClient) Tags

func (c *StatsClient) Tags() []string

Tags returns a sorted list of tags on the client.

func (*StatsClient) Timing

func (c *StatsClient) Timing(name string, value time.Duration, rate float64)

Timing tracks timing information for a metric.

func (*StatsClient) WithTags

func (c *StatsClient) WithTags(tags ...string) pilosa.StatsClient

WithTags returns a new client with additional tags appended.

Jump to

Keyboard shortcuts

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