statsd

package
v0.37.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Arguments{

	ListenUDP:      statsd_exporter.DefaultConfig.ListenUDP,
	ListenTCP:      statsd_exporter.DefaultConfig.ListenTCP,
	UnixSocketMode: statsd_exporter.DefaultConfig.UnixSocketMode,

	CacheSize:           statsd_exporter.DefaultConfig.CacheSize,
	CacheType:           statsd_exporter.DefaultConfig.CacheType,
	EventQueueSize:      statsd_exporter.DefaultConfig.EventQueueSize,
	EventFlushThreshold: statsd_exporter.DefaultConfig.EventFlushThreshold,
	EventFlushInterval:  statsd_exporter.DefaultConfig.EventFlushInterval,

	ParseDogStatsd: statsd_exporter.DefaultConfig.ParseDogStatsd,
	ParseInfluxDB:  statsd_exporter.DefaultConfig.ParseInfluxDB,
	ParseLibrato:   statsd_exporter.DefaultConfig.ParseLibrato,
	ParseSignalFX:  statsd_exporter.DefaultConfig.ParseSignalFX,

	RelayPacketLength: statsd_exporter.DefaultConfig.RelayPacketLength,
}

DefaultConfig holds non-zero default options for the Config when it is unmarshaled from YAML.

Some defaults are populated from init functions in the github.com/grafana/agent/pkg/integrations/statsd_exporter package.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	ListenUDP      string `river:"listen_udp,attr,optional"`
	ListenTCP      string `river:"listen_tcp,attr,optional"`
	ListenUnixgram string `river:"listen_unixgram,attr,optional"`
	UnixSocketMode string `river:"unix_socket_mode,attr,optional"`
	MappingConfig  string `river:"mapping_config_path,attr,optional"`

	ReadBuffer          int           `river:"read_buffer,attr,optional"`
	CacheSize           int           `river:"cache_size,attr,optional"`
	CacheType           string        `river:"cache_type,attr,optional"`
	EventQueueSize      int           `river:"event_queue_size,attr,optional"`
	EventFlushThreshold int           `river:"event_flush_threshold,attr,optional"`
	EventFlushInterval  time.Duration `river:"event_flush_interval,attr,optional"`

	ParseDogStatsd bool `river:"parse_dogstatsd_tags,attr,optional"`
	ParseInfluxDB  bool `river:"parse_influxdb_tags,attr,optional"`
	ParseLibrato   bool `river:"parse_librato_tags,attr,optional"`
	ParseSignalFX  bool `river:"parse_signalfx_tags,attr,optional"`

	RelayAddr         string `river:"relay_addr,attr,optional"`
	RelayPacketLength int    `river:"relay_packet_length,attr,optional"`
}

func (*Arguments) Convert

func (c *Arguments) Convert() (*statsd_exporter.Config, error)

Convert gives a config suitable for use with github.com/grafana/agent/pkg/integrations/statsd_exporter.

func (*Arguments) SetToDefault added in v0.35.0

func (a *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

Jump to

Keyboard shortcuts

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