datadog

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Rate represents a metric rate of 1/sec.
	Rate = 1

	// Client buffer size.
	BufferLen = 256
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsClient

type StatsClient struct {
	LogOutput io.Writer
	// contains filtered or unexported fields
}

StatsClient represents a DataDog implementation of pilosa.StatsClient.

func NewStatsClient

func NewStatsClient() (*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)

Count tracks the number of times something occurs per second.

func (*StatsClient) Gauge

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

Gauge sets the value of a metric.

func (*StatsClient) Histogram

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

Histogram tracks statistical distribution of a metric.

func (*StatsClient) Set

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

Set tracks number of unique elements.

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)

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