statsd

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(params output.Params) (output.Output, error)

New creates a new statsd connector client

Types

type Output

type Output struct {
	output.SampleBuffer
	// contains filtered or unexported fields
}

Output sends result data to statsd daemons with the ability to send to datadog as well

func NewDatadog

func NewDatadog(params output.Params) (*Output, error)

NewDatadog creates a new statsd connector client with tags enabled TODO delete this

func (*Output) Description

func (o *Output) Description() string

Description returns a human-readable description of the output.

func (*Output) Start

func (o *Output) Start() error

Start tries to open a connection to specified statsd service and starts the goroutine for metric flushing.

func (*Output) Stop

func (o *Output) Stop() error

Stop flushes any remaining metrics and stops the goroutine.

Jump to

Keyboard shortcuts

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