Documentation ¶
Overview ¶
Package inetdiagerstater is the inetdiager stats go routine as part of the xtcp package
Basically, this go routine recieves stats over the channel and updates Prometheus and statsd stats
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InetdiagerStater ¶
func InetdiagerStater(in <-chan InetdiagerStatsWrapper, cliFlags cliflags.CliFlags)
InetdiagerStater calculates stats for the inetdiagers The inetdiagers run a timer that when it expires the inetdiager will send summary stats over the channel to inetdiagerStater Please note that the timer is currnetly half (1/2) the polling frequency. PLEASE BE CAREFUL WHEN DECREASING THE POLLING FREQUENCY TODO Consider an alternative strategy where the poller could signal the inetdiagers via a channel that the polling cycle is done, and then inetdiagers could start a timed loop to check for no more messages, and then report. This would help find when the polling is done, and all the messages from the netlinkers have been processed.
Types ¶
type InetdiagerStats ¶
type InetdiagerStats struct { InetdiagMsgInSizeTotal int InetdiagMsgCount int InetdiagMsgBytesReadTotal int PadBufferTotal int UDPWritesTotal int UDPBytesWrittenTotal int UDPErrorsTotal int StatsBlocked int }
InetdiagerStats struct are the interesting stats coming out of each inetdiager
type InetdiagerStatsWrapper ¶
type InetdiagerStatsWrapper struct { Af uint8 ID int Stats InetdiagerStats }
InetdiagerStatsWrapper struct has AF, id, and then the inetdiagerStats