Documentation ¶
Index ¶
- func NewProcCpuInfo() readers.IReader
- func NewProcDiskStats() readers.IReader
- func NewProcLoadAvg() readers.IReader
- func NewProcMemInfo() readers.IReader
- func NewProcMounts() readers.IReader
- func NewProcNetDev() readers.IReader
- func NewProcNetDevPid() readers.IReader
- func NewProcStat() readers.IReader
- func NewProcUptime() readers.IReader
- func NewProcVmStat() readers.IReader
- type ProcCpuInfo
- type ProcDiskStats
- type ProcLoadAvg
- type ProcMemInfo
- type ProcMounts
- type ProcNetDev
- type ProcNetDevPid
- type ProcStat
- type ProcUptime
- type ProcVmStat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProcCpuInfo ¶
NewProcCpuInfo is ProcCpuInfo constructor.
func NewProcDiskStats ¶
NewProcDiskStats is ProcDiskStats constructor.
func NewProcLoadAvg ¶
NewProcLoadAvg is ProcLoadAvg constructor.
func NewProcMemInfo ¶
NewProcMemInfo is ProcMemInfo constructor.
func NewProcNetDevPid ¶
NewProcNetDevPid is ProcNetDevPid constructor.
Types ¶
type ProcCpuInfo ¶
ProcCpuInfo is a reader that scrapes /proc/cpuinfo data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/cpuinfo.go
func (*ProcCpuInfo) Run ¶
func (p *ProcCpuInfo) Run() error
func (*ProcCpuInfo) ToJson ¶
func (p *ProcCpuInfo) ToJson() ([]byte, error)
ToJson serialize Data field to JSON.
type ProcDiskStats ¶
ProcDiskStats is a reader that scrapes /proc/diskstats data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/diskstat.go
func (*ProcDiskStats) Run ¶
func (p *ProcDiskStats) Run() error
func (*ProcDiskStats) ToJson ¶
func (p *ProcDiskStats) ToJson() ([]byte, error)
ToJson serialize Data field to JSON.
type ProcLoadAvg ¶
ProcLoadAvg is a reader that scrapes /proc/diskstats data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/loadavg.go
func (*ProcLoadAvg) Run ¶
func (p *ProcLoadAvg) Run() error
func (*ProcLoadAvg) ToJson ¶
func (p *ProcLoadAvg) ToJson() ([]byte, error)
ToJson serialize Data field to JSON.
type ProcMemInfo ¶
ProcMemInfo is a reader that scrapes /proc/diskstats data. Data source: https://github.com/guillermo/go.procmeminfo
func (*ProcMemInfo) Run ¶
func (p *ProcMemInfo) Run() error
func (*ProcMemInfo) ToJson ¶
func (p *ProcMemInfo) ToJson() ([]byte, error)
ToJson serialize Data field to JSON.
type ProcMounts ¶
ProcMounts is a reader that scrapes /proc/mounts data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/mounts.go
func (*ProcMounts) Run ¶
func (p *ProcMounts) Run() error
func (*ProcMounts) ToJson ¶
func (p *ProcMounts) ToJson() ([]byte, error)
ToJson serialize Data field to JSON.
type ProcNetDev ¶
type ProcNetDev struct {
Data map[string]linuxproc.NetworkStat
}
ProcNetDev is a reader that scrapes /proc/net/dev data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/network_stat.go
func (*ProcNetDev) Run ¶
func (p *ProcNetDev) Run() error
func (*ProcNetDev) ToJson ¶
func (p *ProcNetDev) ToJson() ([]byte, error)
ToJson serialize Data field to JSON.
type ProcNetDevPid ¶
type ProcNetDevPid struct {
Data map[string]map[string]linuxproc.NetworkStat
}
ProcNetDevPid is a reader that scrapes /proc/$pid/net/dev data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/network_stat.go
func (*ProcNetDevPid) Run ¶
func (p *ProcNetDevPid) Run() error
func (*ProcNetDevPid) ToJson ¶
func (p *ProcNetDevPid) ToJson() ([]byte, error)
ToJson serialize Data field to JSON.
type ProcStat ¶
ProcStat is a reader that scrapes /proc/stat data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/stat.go
type ProcUptime ¶
ProcUptime is a reader that scrapes /proc/uptime data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/uptime.go
func (*ProcUptime) Run ¶
func (p *ProcUptime) Run() error
func (*ProcUptime) ToJson ¶
func (p *ProcUptime) ToJson() ([]byte, error)
ToJson serialize Data field to JSON.
type ProcVmStat ¶
ProcVmStat is a reader that scrapes /proc/vmstat data. Data source: https://github.com/c9s/goprocinfo/blob/master/linux/vmstat.go
func (*ProcVmStat) Run ¶
func (p *ProcVmStat) Run() error
func (*ProcVmStat) ToJson ¶
func (p *ProcVmStat) ToJson() ([]byte, error)
ToJson serialize Data field to JSON.