procipvs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Connections     = "connections"
	IncomingPackets = "incomingpackets"
	OutgoingPackets = "outgoingpackets"
	IncomingBytes   = "incomingbytes"
	OutgoingBytes   = "outgoingbytes"

	IPVSMetrics = []string{Connections, IncomingPackets, OutgoingBytes, IncomingBytes, OutgoingPackets}
)

Functions

This section is empty.

Types

type IPVSStats

type IPVSStats struct {
	// Total count of connections.
	Connections uint64
	// Total incoming packages processed.
	IncomingPackets uint64
	// Total outgoing packages processed.
	OutgoingPackets uint64
	// Total incoming traffic.
	IncomingBytes uint64
	// Total outgoing traffic.
	OutgoingBytes uint64
}

IPVSStats holds IPVS statistics, as exposed by the kernel in `/proc/net/ip_vs_stats`.

type ProcIPVS

type ProcIPVS struct {
}

func (*ProcIPVS) CollectOnce added in v1.0.0

func (p *ProcIPVS) CollectOnce() (map[string]map[uint32]uint64, error)

func (*ProcIPVS) Start

func (p *ProcIPVS) Start(_ context.Context) error

func (*ProcIPVS) Stop added in v1.0.0

func (p *ProcIPVS) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

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