Documentation ¶
Index ¶
- Constants
- type RunningStats
- func (rs *RunningStats) AddValue(v float64)
- func (rs *RunningStats) Count() int64
- func (rs *RunningStats) Lower() float64
- func (rs *RunningStats) Mean() float64
- func (rs *RunningStats) Percentile(n float64) float64
- func (rs *RunningStats) Stddev() float64
- func (rs *RunningStats) Sum() float64
- func (rs *RunningStats) Upper() float64
- func (rs *RunningStats) Variance() float64
- type Statsd
Constants ¶
View Source
const (
MaxTCPConnections = 250
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunningStats ¶
type RunningStats struct { PercLimit int // contains filtered or unexported fields }
RunningStats calculates a running mean, variance, standard deviation, lower bound, upper bound, count, and can calculate estimated percentiles. It is based on the incremental algorithm described here:
https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance
func (*RunningStats) AddValue ¶
func (rs *RunningStats) AddValue(v float64)
func (*RunningStats) Count ¶
func (rs *RunningStats) Count() int64
func (*RunningStats) Lower ¶
func (rs *RunningStats) Lower() float64
func (*RunningStats) Mean ¶
func (rs *RunningStats) Mean() float64
func (*RunningStats) Percentile ¶
func (rs *RunningStats) Percentile(n float64) float64
func (*RunningStats) Stddev ¶
func (rs *RunningStats) Stddev() float64
func (*RunningStats) Sum ¶
func (rs *RunningStats) Sum() float64
func (*RunningStats) Upper ¶
func (rs *RunningStats) Upper() float64
func (*RunningStats) Variance ¶
func (rs *RunningStats) Variance() float64
type Statsd ¶
type Statsd struct { sync.Mutex UDPPacketsDrop selfstat.Stat Log cua.Logger ParseTimeNS selfstat.Stat UDPBytesRecv selfstat.Stat CurrentConnections selfstat.Stat UDPPacketsRecv selfstat.Stat TCPBytesRecv selfstat.Stat TCPPacketsRecv selfstat.Stat MaxConnections selfstat.Stat TotalConnections selfstat.Stat TraceMetrics *string `toml:"trace_metrics"` // direct metrics UDPlistener *net.UDPConn TCPlistener *net.TCPListener CheckTags map[string]string // direct metrics - list of tags to add to check when created DebugAPI *bool `toml:"debug_api"` // direct metrics TCPKeepAlivePeriod *internal.Duration `toml:"tcp_keep_alive_period"` Broker string `toml:"broker"` // direct metrics MetricSeparator string ServiceAddress string Protocol string `toml:"protocol"` InstanceID string `toml:"instance_id"` Templates []string UDPPacketSize int `toml:"udp_packet_size"` MaxTCPConnections int `toml:"max_tcp_connections"` AllowedPendingMessages int ReadBufferSize int `toml:"read_buffer_size"` DataDogExtensions bool `toml:"datadog_extensions"` TCPKeepAlive bool `toml:"tcp_keep_alive"` // contains filtered or unexported fields }
Statsd allows the importing of statsd and dogstatsd data.
func (*Statsd) Description ¶
func (*Statsd) SampleConfig ¶
Click to show internal directories.
Click to hide internal directories.