Documentation
¶
Index ¶
- Variables
- func CpuBusy() float64
- func CpuCnt() int
- func CpuGuest() float64
- func CpuIdle() float64
- func CpuIowait() float64
- func CpuIrq() float64
- func CpuNice() float64
- func CpuSoftIrq() float64
- func CpuSteal() float64
- func CpuSystem() float64
- func CpuUser() float64
- func IODelta(device string, f func([2]*collector.DiskStats) uint64) uint64
- func IOMsecRead(arr [2]*collector.DiskStats) uint64
- func IOMsecTotal(arr [2]*collector.DiskStats) uint64
- func IOMsecWeightedTotal(arr [2]*collector.DiskStats) uint64
- func IOMsecWrite(arr [2]*collector.DiskStats) uint64
- func IOReadMerged(arr [2]*collector.DiskStats) uint64
- func IOReadRequests(arr [2]*collector.DiskStats) uint64
- func IOReadSectors(arr [2]*collector.DiskStats) uint64
- func IOWriteMerged(arr [2]*collector.DiskStats) uint64
- func IOWriteRequests(arr [2]*collector.DiskStats) uint64
- func IOWriteSectors(arr [2]*collector.DiskStats) uint64
- func NetDroppedRate(iface string) int64
- func NetReceiveBytesRate(iface string) int64
- func NetTotalBytesRate(iface string) int64
- func NetTransmitBytesRate(iface string) int64
- func PortIsListen(port int64) bool
- func UpdateCpuStat() error
- func UpdateDiskStats() error
- func UpdateIfStat() error
Constants ¶
This section is empty.
Variables ¶
View Source
var CpuNum int
View Source
var CpuSnapshootList [global.MaxCpustatHistory]*collector.CpuSnapshoot
View Source
var DiskStatsList = make(map[string][2]*collector.DiskStats)
View Source
var NetIfList = make(map[string][2]*collector.NetIf)
Functions ¶
func CpuSoftIrq ¶
func CpuSoftIrq() float64
func IOMsecRead ¶
func IOMsecTotal ¶
func IOMsecWeightedTotal ¶
func IOMsecWrite ¶
func IOReadMerged ¶
func IOReadRequests ¶
func IOReadSectors ¶
func IOWriteMerged ¶
func IOWriteRequests ¶
func IOWriteSectors ¶
func NetDroppedRate ¶
func NetReceiveBytesRate ¶
func NetTotalBytesRate ¶
func NetTransmitBytesRate ¶
func PortIsListen ¶
func UpdateCpuStat ¶
func UpdateCpuStat() error
func UpdateDiskStats ¶
func UpdateDiskStats() error
func UpdateIfStat ¶
func UpdateIfStat() error
Types ¶
This section is empty.