Versions in this module Expand all Collapse all v1 v1.0.0 Jan 10, 2022 Changes in this version + type NativeFinder struct + func (pg *NativeFinder) FastProcessList() ([]*process.Process, error) + func (pg *NativeFinder) FullPattern(pattern string) ([]PID, error) + func (pg *NativeFinder) Pattern(pattern string) ([]PID, error) + func (pg *NativeFinder) PidFile(path string) ([]PID, error) + func (pg *NativeFinder) UID(user string) ([]PID, error) + type PID int32 + type PIDFinder interface + FullPattern func(path string) ([]PID, error) + Pattern func(pattern string) ([]PID, error) + PidFile func(path string) ([]PID, error) + UID func(user string) ([]PID, error) + func NewNativeFinder() (PIDFinder, error) + func NewPgrep() (PIDFinder, error) + type Pgrep struct + func (pg *Pgrep) FullPattern(pattern string) ([]PID, error) + func (pg *Pgrep) Pattern(pattern string) ([]PID, error) + func (pg *Pgrep) PidFile(path string) ([]PID, error) + func (pg *Pgrep) UID(user string) ([]PID, error) + type Pids struct + Err error + PIDS []PID + type Proc struct + func (p *Proc) PID() PID + func (p *Proc) Percent(_ time.Duration) (float64, error) + func (p *Proc) Username() (string, error) + type Process interface + Cmdline func() (string, error) + CreateTime func() (int64, error) + IOCounters func() (*process.IOCountersStat, error) + MemoryInfo func() (*process.MemoryInfoStat, error) + MemoryPercent func() (float32, error) + Name func() (string, error) + NumFDs func() (int32, error) + NumThreads func() (int32, error) + PID func() PID + Percent func(interval time.Duration) (float64, error) + Ppid func() (int32, error) + RlimitUsage func(bool) ([]process.RlimitStat, error) + Times func() (*cpu.TimesStat, error) + Username func() (string, error) + func NewProc(pid PID) (Process, error) + type Procstat struct + CGroup string + CmdLineTag bool + Exe string + IncludeSystemdChildren bool + Pattern string + PidFile string + PidFinder string + SystemdUnit string + User string + func (p *Procstat) Gather() ([]interface{}, error) + func (p *Procstat) Init() error + func (p *Procstat) Series() plugins.Series + func (p *Procstat) SimpleFindPids(f PIDFinder) ([]PID, error)