netlinkerstater

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: 8 Imported by: 0

Documentation

Overview

Package netlinkerstater is the stats go routine for the xtcp system

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 NetlinkerStater

func NetlinkerStater(in <-chan NetlinkerStatsWrapper, cliFlags cliflags.CliFlags)

NetlinkerStater is responsible for incrementing prometheus stats and optionally statsd about the netlink workers netlinkerStater recieves summary stats from each netlinker worker just as it completes Reminder that the netlinker complettes when all packets have been processed, and the process has reached DONE or timeout

Types

type NetlinkerStats

type NetlinkerStats struct {
	PacketsProcessed           int
	NastyContinue              int
	PacketBufferInSizeTotal    int
	NetlinkMsgCountTotal       int
	PacketBufferBytesReadTotal int
	InetdiagMsgCopyBytesTotal  int
	NetlinkMsgErrorCount       int
	OutBlocked                 int
	LongestBlockedDuration     time.Duration
}

NetlinkerStats struct are the actual interesting data from each of the Netlinkers

type NetlinkerStatsWrapper

type NetlinkerStatsWrapper struct {
	Af    uint8
	ID    int
	Stats NetlinkerStats
}

NetlinkerStatsWrapper struct passes interesting data from the netlinker to the NetlinkerStater The wrapper has the af, id, and stats

Jump to

Keyboard shortcuts

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