statsd

package
v3.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: 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 Config

type Config struct {
	config.MonitorConfig `singleInstance:"true"`

	// The host/address on which to bind the UDP listener that accepts statsd
	// datagrams
	ListenAddress string `yaml:"listenAddress" default:"localhost"`
	// The port on which to listen for statsd messages
	ListenPort      uint16  `yaml:"listenPort" default:"8125"`
	DeleteSets      bool    `yaml:"deleteSets"`
	DeleteCounters  bool    `yaml:"deleteCounters"`
	DeleteTimers    bool    `yaml:"deleteTimers"`
	DeleteGauges    bool    `yaml:"deleteGauges"`
	TimerPercentile float64 `yaml:"timerPercentile"`
	TimerUpper      bool    `yaml:"timerUpper"`
	TimerSum        bool    `yaml:"timerSum"`
	TimerLower      bool    `yaml:"timerLower"`
	CounterSum      bool    `yaml:"counterSum"`
}

Config is the monitor-specific config with the generic config embedded

type Monitor

type Monitor struct {
	collectd.MonitorCore
}

Monitor is the main type that represents the monitor

func (*Monitor) Configure

func (am *Monitor) Configure(conf *Config) error

Configure configures and runs the plugin in collectd

Jump to

Keyboard shortcuts

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