Documentation ¶
Overview ¶
Package netstat implements metrics collection related to TCP and UDP
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtendedMetrics ¶
ExtendedMetrics represents extended statistics about various tcp indicators and is automatically initialized. Caution: reflection is used to read this struct to discover names
type NetStat ¶
type NetStat struct { TCPStat TCPStat UDPStat UDPStat ExtendedMetrics ExtendedMetrics // contains filtered or unexported fields }
NetStat is a holder for TCP and UDP statistics.
type TCPStat ¶
type TCPStat struct { MaxConn *metrics.Gauge ActiveOpens *metrics.Counter PassiveOpens *metrics.Counter AttemptFails *metrics.Counter EstabResets *metrics.Counter CurrEstab *metrics.Gauge InSegs *metrics.Counter OutSegs *metrics.Counter RetransSegs *metrics.Counter InErrs *metrics.Counter OutRsts *metrics.Counter }
TCPStat represents statistics about various tcp indicators and is automatically initialized. Caution: reflection is used to read this struct to discover names
type UDPStat ¶
type UDPStat struct { InDatagrams *metrics.Counter NoPorts *metrics.Counter InErrors *metrics.Counter OutDatagrams *metrics.Counter RcvbufErrors *metrics.Counter SndbufErrors *metrics.Counter }
UDPStat represents statistics about UDP. Reflection is used to map field names to kernel data.
Click to show internal directories.
Click to hide internal directories.