statsd

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger logrus.FieldLogger, conf common.Config) (*common.Collector, error)

New creates a new statsd connector client

Types

type Config added in v0.29.0

type Config struct {
	Addr         null.String        `json:"addr,omitempty" envconfig:"K6_STATSD_ADDR"`
	BufferSize   null.Int           `json:"bufferSize,omitempty" envconfig:"K6_STATSD_BUFFER_SIZE"`
	Namespace    null.String        `json:"namespace,omitempty" envconfig:"K6_STATSD_NAMESPACE"`
	PushInterval types.NullDuration `json:"pushInterval,omitempty" envconfig:"K6_STATSD_PUSH_INTERVAL"`
}

Config defines the StatsD configuration.

func NewConfig added in v0.29.0

func NewConfig() Config

NewConfig creates a new Config instance with default values for some fields.

func (Config) Apply added in v0.29.0

func (c Config) Apply(cfg Config) Config

Apply saves config non-zero config values from the passed config in the receiver.

func (Config) GetAddr added in v0.29.0

func (c Config) GetAddr() null.String

GetAddr returns the address of the StatsD service.

func (Config) GetBufferSize added in v0.29.0

func (c Config) GetBufferSize() null.Int

GetBufferSize returns the size of the commands buffer.

func (Config) GetNamespace added in v0.29.0

func (c Config) GetNamespace() null.String

GetNamespace returns the namespace prepended to all statsd calls.

func (Config) GetPushInterval added in v0.29.0

func (c Config) GetPushInterval() types.NullDuration

GetPushInterval returns the time interval between outgoing data batches.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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