Documentation ¶
Overview ¶
Package pollerstater is the stats handling go routine of xtcp
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 PollerStater ¶
func PollerStater(in <-chan PollerStats, cliFlags cliflags.CliFlags)
PollerStater calculates stats for the pollers We're calculating the differences between stats, for multiple reasons 1. Difference means we increment the prometheus counters less frequently and in bigger chunks 2. We can send the diffs to statsd to avoid overloading it with lots of small increments 3. We only need to pass things over the channel relatively infrequently cliFlags needed for statsd destination
Types ¶
Click to show internal directories.
Click to hide internal directories.