Documentation
¶
Index ¶
- type NativeFinder
- func (pg *NativeFinder) Children(pid PID) ([]PID, error)
- 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
- type PIDFinder
- type Pgrep
- type PidsTags
- type Proc
- type Process
- type Procstat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NativeFinder ¶ added in v1.14.0
type NativeFinder struct{}
NativeFinder uses gopsutil to find processes
func (*NativeFinder) Children ¶ added in v1.29.0
func (pg *NativeFinder) Children(pid PID) ([]PID, error)
Children matches children pids on the command line when the process was executed
func (*NativeFinder) FastProcessList ¶ added in v1.14.5
func (pg *NativeFinder) FastProcessList() ([]*process.Process, error)
func (*NativeFinder) FullPattern ¶ added in v1.14.0
func (pg *NativeFinder) FullPattern(pattern string) ([]PID, error)
FullPattern matches on the command line when the process was executed
func (*NativeFinder) Pattern ¶ added in v1.14.0
func (pg *NativeFinder) Pattern(pattern string) ([]PID, error)
Pattern matches on the process name
type Pgrep ¶ added in v1.14.0
type Pgrep struct {
// contains filtered or unexported fields
}
Implementation of PIDGatherer that execs pgrep to find processes
func (*Pgrep) FullPattern ¶ added in v1.14.0
type Procstat ¶
type Procstat struct {
PidFinder string `toml:"pid_finder"`
PidFile string `toml:"pid_file"`
Exe string `toml:"exe"`
Pattern string `toml:"pattern"`
Prefix string `toml:"prefix"`
CmdLineTag bool `toml:"cmdline_tag" deprecated:"1.29.0;use 'tag_with' instead"`
ProcessName string `toml:"process_name"`
User string `toml:"user"`
SystemdUnit string `toml:"systemd_unit"`
SupervisorUnit []string `toml:"supervisor_unit" deprecated:"1.29.0;use 'supervisor_units' instead"`
SupervisorUnits []string `toml:"supervisor_units"`
IncludeSystemdChildren bool `toml:"include_systemd_children"`
CGroup string `toml:"cgroup"`
PidTag bool `toml:"pid_tag" deprecated:"1.29.0;use 'tag_with' instead"`
WinService string `toml:"win_service"`
Mode string `toml:"mode"`
TagWith []string `toml:"tag_with"`
Log telegraf.Logger `toml:"-"`
// contains filtered or unexported fields
}
func (*Procstat) SampleConfig ¶
Click to show internal directories.
Click to hide internal directories.