Versions in this module Expand all Collapse all v1 v1.0.0 Dec 16, 2024 Changes in this version + type Metric struct + Detail bool + Enabled bool + Interfaces []string + Sockets bool + Summary bool + Throughput bool + func New(cfg *config.Config) (*Metric, error) + func (m *Metric) Collect() error + type Resolver interface — darwin/amd64, js/wasm, windows/amd64 + IsSet func() bool + Join func(...string) string + ResolveHostFS func(string) string + type SockStat struct — linux/amd64 + FragInUse int + FragMemory int + RawInUse int + SocketsUsed int + TCPAlloc int + TCPInUse int + TCPMem int + TCPOrphan int + TCPTW int + UDPInUse int + UDPLiteInUse int + UDPMem int + type SocketStats struct + TcpClosewait uint + TcpClosing uint + TcpConns uint + TcpEstablished uint + TcpFinwait1 uint + TcpFinwait2 uint + TcpLastack uint + TcpListening uint + TcpSynrecv uint + TcpSynsent uint + TcpTimewait uint