datadog

package
v1.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DogStatsdSink

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

DogStatsdSink provides a MetricSink that can be used with a dogstatsd server. It utilizes the Dogstatsd client at github.com/DataDog/datadog-go/statsd

func NewDogStatsdSink

func NewDogStatsdSink(addr string, hostName string) (*DogStatsdSink, error)

NewDogStatsdSink is used to create a new DogStatsdSink with sane defaults

func (*DogStatsdSink) AddSample

func (s *DogStatsdSink) AddSample(key []string, val float32)

func (*DogStatsdSink) AddSampleWithTags

func (s *DogStatsdSink) AddSampleWithTags(key []string, val float32, tags []string)

func (*DogStatsdSink) EmitKey

func (s *DogStatsdSink) EmitKey(key []string, val float32)

EmitKey is not implemented since DogStatsd does not provide a metric type that holds an arbitrary number of values

func (*DogStatsdSink) EnableHostNamePropagation

func (s *DogStatsdSink) EnableHostNamePropagation()

EnableHostnamePropagation forces a Dogstatsd `host` tag with the value specified by `s.HostName` Since the go-metrics package has its own mechanism for attaching a hostname to metrics, setting the `propagateHostname` flag ensures that `s.HostName` overrides the host tag naively set by the DogStatsd server

func (*DogStatsdSink) IncrCounter

func (s *DogStatsdSink) IncrCounter(key []string, val float32)

func (*DogStatsdSink) IncrCounterWithTags

func (s *DogStatsdSink) IncrCounterWithTags(key []string, val float32, tags []string)

func (*DogStatsdSink) SetGauge

func (s *DogStatsdSink) SetGauge(key []string, val float32)

func (*DogStatsdSink) SetGaugeWithTags

func (s *DogStatsdSink) SetGaugeWithTags(key []string, val float32, tags []string)

func (*DogStatsdSink) SetTags

func (s *DogStatsdSink) SetTags(tags []string)

SetTags sets common tags on the Dogstatsd Client that will be sent along with all dogstatsd packets. Ref: http://docs.datadoghq.com/guides/dogstatsd/#tags

Jump to

Keyboard shortcuts

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