Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapProcNetCounters ¶
func MapProcNetCounters(raw *sysinfotypes.NetworkCountersInfo) mapstr.M
MapProcNetCounters converts the NetworkCountersInfo struct into a MapStr acceptable for sending upstream
func MapProcNetCountersWithFilter ¶ added in v0.4.5
func MapProcNetCountersWithFilter(raw *sysinfotypes.NetworkCountersInfo, filter []string) mapstr.M
MapProcNetCountersWithFilter converts the NetworkCountersInfo to a formatted mapstring, and applies a filter to the resulting map. The filter should be an array key values, taken from /proc/PID/net/snmp or /proc/PID/net/netstat
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.