Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct {
// Exe is the executable that is running.
Exe string
// PID of the process
PID int
// Memory stats of the process
Memory *memory.ProcessMemory
// IO contains information about the IO of the machine.
IO *io.ProcessIO
}
Process is information about a Linux process
type Stats ¶
type Stats struct {
// System specific information
System System
// Container specific information
Container *container.Container
// Cloud specific information
Cloud *cloud.Cloud
// Processes are the process information of the system
Processes []Process
}
Stats contains both the system and process statistics.
func New ¶
New returns stats of the machine with pids filtering for processes. If pids are empty then it returns all process stats.
func (*Stats) UnmarshalJSON ¶ added in v0.3.0
UnmarshalJSON converts a byte blob into the Stats object representation.
type System ¶ added in v0.2.2
type System struct {
// Memory stats of the system
Memory *memory.Memory
// Network stats of the system
Network *network.Network
// Disk stats of the system
Disk *disk.Disk
// Kernel represents the kernel parameters of the current
// system. On Linux this is the output of `sysctl -a`
Kernel map[string]string
}
System contains information about the system
Directories
¶
| Path | Synopsis |
|---|---|
|
Package disk shows information about block drives in the machine.
|
Package disk shows information about block drives in the machine. |
|
Package memory provides sanatized information about for Linux Memory - http://superuser.com/questions/521551/cat-proc-meminfo-what-do-all-those-numbers-mean - https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-proc-meminfo.html
|
Package memory provides sanatized information about for Linux Memory - http://superuser.com/questions/521551/cat-proc-meminfo-what-do-all-those-numbers-mean - https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-proc-meminfo.html |
|
Package mvp contains a bunch of code which is a minimum viable product.
|
Package mvp contains a bunch of code which is a minimum viable product. |
Click to show internal directories.
Click to hide internal directories.