Versions in this module Expand all Collapse all v1 v1.0.2 Jan 27, 2021 v1.0.1 May 29, 2015 Changes in this version + type InterfaceStat struct — linux/amd64 + Interfaces map[string]*PerInterfaceStat + func New(m *metrics.MetricContext, Step time.Duration) *InterfaceStat + func (s *InterfaceStat) ByUsage() []*PerInterfaceStat + func (s *InterfaceStat) Collect() + type PerInterfaceStat struct — linux/amd64 + Metrics *PerInterfaceStatMetrics + Name string + func NewPerInterfaceStat(m *metrics.MetricContext, dev string) *PerInterfaceStat + func (s *PerInterfaceStat) RXBandwidth() float64 + func (s *PerInterfaceStat) RXBandwidthUsage() float64 + func (s *PerInterfaceStat) Speed() float64 + func (s *PerInterfaceStat) TXBandwidth() float64 + func (s *PerInterfaceStat) TXBandwidthUsage() float64 + type PerInterfaceStatMetrics struct — linux/amd64 + RXbytes *metrics.Counter + RXcompressed *metrics.Counter + RXdrop *metrics.Counter + RXerrs *metrics.Counter + RXfifo *metrics.Counter + RXframe *metrics.Counter + RXmulticast *metrics.Counter + RXpackets *metrics.Counter + Speed *metrics.Gauge + TXbytes *metrics.Counter + TXcompressed *metrics.Counter + TXdrop *metrics.Counter + TXerrs *metrics.Counter + TXfifo *metrics.Counter + TXframe *metrics.Counter + TXmulticast *metrics.Counter + TXpackets *metrics.Counter