Help us shape the future of Go! Take the 2026 Go Developer Survey

procnetdev

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RxBytes   = "rxbytes"
	RxErrors  = "rxerrors"
	TxBytes   = "txbytes"
	TxErrors  = "txerrors"
	RxPackets = "rxpackets"
	RxDropped = "rxdropped"
	TxPackets = "txpackets"
	TxDropped = "txdropped"
)

Variables

View Source
var (
	NetdevMetrics = []probe.LegacyMetric{
		{Name: RxBytes, Help: "The total number of bytes received on the network interface."},
		{Name: RxErrors, Help: "The total number of errors encountered while receiving on the network interface."},
		{Name: TxBytes, Help: "The total number of bytes transmitted on the network interface."},
		{Name: TxErrors, Help: "The total number of errors encountered while transmitting on the network interface."},
		{Name: RxPackets, Help: "The total number of packets received on the network interface."},
		{Name: RxDropped, Help: "The total number of received packets that were dropped on the network interface."},
		{Name: TxPackets, Help: "The total number of packets transmitted on the network interface."},
		{Name: TxDropped, Help: "The total number of transmitted packets that were dropped on the network interface."},
	}
)

Functions

This section is empty.

Types

type ProcNetdev

type ProcNetdev struct {
}

func (*ProcNetdev) CollectOnce added in v1.0.0

func (s *ProcNetdev) CollectOnce() (map[string]map[uint32]uint64, error)

func (*ProcNetdev) Start

func (s *ProcNetdev) Start(_ context.Context) error

func (*ProcNetdev) Stop added in v1.0.0

func (s *ProcNetdev) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

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