Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExecCommand = exec.Command
Functions ¶
func ProtoCounters ¶ added in v1.5.4
func ProtoCounters(protocols []string) ([]net.ProtoCountersStat, error)
ProtoCounters wrapper
Types ¶
type PIDFinder ¶
type Pgrep ¶
type Pgrep struct {
// contains filtered or unexported fields
}
Implemention of PIDGatherer that execs pgrep to find processes
type Process ¶
type Process interface { PID() PID Tags() map[string]string IOCounters() (*process.IOCountersStat, error) MemoryInfo() (*process.MemoryInfoStat, error) Name() (string, error) NumCtxSwitches() (*process.NumCtxSwitchesStat, error) NumFDs() (int32, error) NumThreads() (int32, error) Percent(interval time.Duration) (float64, error) Times() (*cpu.TimesStat, error) RlimitUsage(bool) ([]process.RlimitStat, error) }
Click to show internal directories.
Click to hide internal directories.