pollerstater

package
v0.0.0-...-2036b99 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

type PollerStats

type PollerStats struct {
	Af                 uint8
	PollingLoops       int
	PollToDoneDuration time.Duration
	PollDuration       time.Duration
}

PollerStats struct has simple stats about the poller goroutine

Jump to

Keyboard shortcuts

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