Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTelemetry ¶
func InitTelemetry(buckets []float64)
InitTelemetry initialize the telemetry.Histogram buckets for the internal telemetry. This will be called once the first dogstatsd server is created since we need the configuration to be fully loaded.
Types ¶
type NamedPipeListener ¶
type NamedPipeListener struct{}
NamedPipeListener implements the StatsdListener interface for named pipe protocol.
func NewNamedPipeListener ¶
func NewNamedPipeListener(pipeName string, packetOut chan packets.Packets, sharedPacketPoolManager *packets.PoolManager, capture *replay.TrafficCapture) (*NamedPipeListener, error)
NewNamedPipeListener returns an named pipe Statsd listener
func (*NamedPipeListener) Listen ¶
func (l *NamedPipeListener) Listen()
Listen runs the intake loop. Should be called in its own goroutine
func (*NamedPipeListener) Stop ¶
func (l *NamedPipeListener) Stop()
Stop closes the connection and stops listening
type StatsdListener ¶
type StatsdListener interface { Listen() Stop() }
StatsdListener opens a communication channel to get statsd packets in.
type UDPListener ¶
type UDPListener struct {
// contains filtered or unexported fields
}
UDPListener implements the StatsdListener interface for UDP protocol. It listens to a given UDP address and sends back packets ready to be processed. Origin detection is not implemented for UDP.
func NewUDPListener ¶
func NewUDPListener(packetOut chan packets.Packets, sharedPacketPoolManager *packets.PoolManager, capture *replay.TrafficCapture) (*UDPListener, error)
NewUDPListener returns an idle UDP Statsd listener
func (*UDPListener) Listen ¶
func (l *UDPListener) Listen()
Listen runs the intake loop. Should be called in its own goroutine
func (*UDPListener) Stop ¶
func (l *UDPListener) Stop()
Stop closes the UDP connection and stops listening
type UDSListener ¶
type UDSListener struct { OriginDetection bool // contains filtered or unexported fields }
UDSListener implements the StatsdListener interface for Unix Domain Socket datagram protocol. It listens to a given socket path and sends back packets ready to be processed. Origin detection will be implemented for UDS.
func NewUDSListener ¶
func NewUDSListener(packetOut chan packets.Packets, sharedPacketPoolManager *packets.PoolManager, capture *replay.TrafficCapture) (*UDSListener, error)
NewUDSListener returns an idle UDS Statsd listener
func (*UDSListener) Listen ¶
func (l *UDSListener) Listen()
Listen runs the intake loop. Should be called in its own goroutine
func (*UDSListener) Stop ¶
func (l *UDSListener) Stop()
Stop closes the UDS connection and stops listening