Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcStat ¶
type ProcStat struct { PID int `json:"pid"` ParentPID int `json:"parent_pid"` ProcessGID int `json:"-"` Name string `json:"name"` Cmdline string `json:"cmdline"` State string `json:"state"` Container string `json:"container,omitempty"` CPUAverageUsagePercent float32 `json:"cpu_avg_usage_percent,omitempty"` RSS uint64 `json:"rss"` // Resident Set Size VMS uint64 `json:"vms"` // Virtual Memory Size MemoryUsagePercent float32 `json:"memory_usage_percent"` }
type ProcessCache ¶
type ProcessCache struct {
// contains filtered or unexported fields
}
func NewProcessCache ¶
func NewProcessCache() *ProcessCache
type ProcessHandler ¶
type ProcessHandler struct {
// contains filtered or unexported fields
}
func NewProcessHandler ¶
func NewProcessHandler(config clientconfig.MonitoringConfig, logger *logger.Logger) *ProcessHandler
func (*ProcessHandler) GetProcessesJSON ¶
func (ph *ProcessHandler) GetProcessesJSON(memStat *mem.VirtualMemoryStat) (string, error)
Click to show internal directories.
Click to hide internal directories.