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)
Click to show internal directories.
Click to hide internal directories.