Versions in this module Expand all Collapse all v1 v1.0.2 Jan 27, 2021 v1.0.1 May 29, 2015 Changes in this version + type PerProcessStat struct — darwin/amd64, linux/amd64 + Metrics *PerProcessStatMetrics + UID int + func NewPerProcessStat(m *metrics.MetricContext, p string) *PerProcessStat + func (s *PerProcessStat) CPUUsage() float64 + func (s *PerProcessStat) Cgroup(subsys string) string + func (s *PerProcessStat) Cmdline() string + func (s *PerProcessStat) Comm() string + func (s *PerProcessStat) Egid() (string, error) + func (s *PerProcessStat) Euid() (string, error) + func (s *PerProcessStat) IOUsage() float64 + func (s *PerProcessStat) MemUsage() float64 + func (s *PerProcessStat) Pid() string + func (s *PerProcessStat) Reset(p string) + func (s *PerProcessStat) User() string + type PerProcessStatInterface interface + CPUUsage func() float64 + MemUsage func() float64 + type PerProcessStatMetrics struct — darwin/amd64, linux/amd64 + IOReadBytes *metrics.Counter + IOWriteBytes *metrics.Counter + Pid string + ResidentSize *metrics.Gauge + ResidentSizeMax *metrics.Gauge + Rss *metrics.Gauge + Stime *metrics.Counter + SystemTime *metrics.Counter + UserTime *metrics.Counter + Utime *metrics.Counter + VirtualSize *metrics.Gauge + func NewPerProcessStatMetrics(m *metrics.MetricContext, pid string) *PerProcessStatMetrics + func (s *PerProcessStatMetrics) Collect() + func (s *PerProcessStatMetrics) Register() + func (s *PerProcessStatMetrics) Reset(pid string) + func (s *PerProcessStatMetrics) Unregister() + type PidFilterFunc func(pidstat *PerProcessStat) (interested bool) + func (f PidFilterFunc) Filter(pidstat *PerProcessStat) (interested bool) + type ProcessStat struct — darwin/amd64, linux/amd64 + Processes map[string]*PerProcessStat + func NewProcessStat(m *metrics.MetricContext, Step time.Duration) *ProcessStat + func (c *ProcessStat) ByCPUUsage() []*PerProcessStat + func (c *ProcessStat) ByMemUsage() []*PerProcessStat + func (s *ProcessStat) ByIOUsage() []*PerProcessStat + func (s *ProcessStat) CPUUsagePerCgroup(cgroup string) float64 + func (s *ProcessStat) Collect() + func (s *ProcessStat) Collect(collectAttributes bool) + func (s *ProcessStat) MemUsagePerCgroup(cgroup string) float64 + func (s *ProcessStat) SetPidFilter(filter PidFilterFunc) + type ProcessStatInterface interface + ByCPUUsage func() []*PerProcessStat + ByMemUsage func() []*PerProcessStat + SetPidFilter func(PidFilterFunc)