Documentation ¶
Overview ¶
Package processes regroups collecting information about running processes.
Package processes regroups collecting information about existing processes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessField ¶
type ProcessField [7]interface{}
ProcessField is an untyped representation of a process group, compatible with the legacy "processes" resource check.
type ProcessGroup ¶ added in v0.48.0
type ProcessGroup struct { // Usernames is the sorted list of usernames of running processes in that groups. Usernames []string // PctCPU is the percentage of cpu used by the group. PctCPU int // PctMem is the percentage of memory used by the group. PctMem float64 // VMS is the vms of the group. VMS uint64 // RSS is the RSS used by the group. RSS uint64 // Name is the name of the group. Name string // Pids is the list of pids in the group. Pids []int32 }
ProcessGroup represents the information about a single process group
func Get ¶ added in v0.48.0
func Get() ([]ProcessGroup, error)
Get returns a list of process groups information or an error
type Processes ¶
type Processes struct{}
Processes is the Collector type of the processes package.
Click to show internal directories.
Click to hide internal directories.