Documentation ¶
Overview ¶
Package process collects metrics about the running processes using information from the operating system.
An example event looks as following:
{ "@timestamp": "2016-05-25T20:57:51.854Z", "beat": { "hostname": "host.example.com", "name": "host.example.com" }, "metricset": { "module": "system", "name": "process", "rtt": 12269 }, "system": { "process": { "cmdline": "/System/Library/CoreServices/ReportCrash", "cpu": { "start_time": "22:57", "total_p": 0 }, "mem": { "rss": 27123712, "rss_pct": 0.0016, "share": 0, "size": 2577522688 }, "name": "ReportCrash", "pid": 97801, "ppid": 1, "state": "running", "username": "elastic" } }, "type": "metricsets" }
Index ¶
- func GetProcCpuPercentage(last *Process, current *Process) float64
- func GetProcMemPercentage(proc *Process, total_phymem uint64) float64
- func New(base mb.BaseMetricSet) (mb.MetricSet, error)
- func Pids() ([]int, error)
- type MetricSet
- type ProcStats
- func (procStats *ProcStats) GetProcStats() ([]common.MapStr, error)
- func (procStats *ProcStats) GetProcStatsEvents() ([]common.MapStr, error)
- func (procStats *ProcStats) GetProcessEvent(process *Process, last *Process) common.MapStr
- func (procStats *ProcStats) InitProcStats() error
- func (procStats *ProcStats) MatchProcess(name string) bool
- type Process
- type ProcsMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProcCpuPercentage ¶
func GetProcMemPercentage ¶
Types ¶
type MetricSet ¶
type MetricSet struct { mb.BaseMetricSet // contains filtered or unexported fields }
MetricSet that fetches process metrics.
type ProcStats ¶
type ProcStats struct { ProcStats bool Procs []string ProcsMap ProcsMap CpuTicks bool // contains filtered or unexported fields }
func (*ProcStats) GetProcStats ¶
func (*ProcStats) GetProcStatsEvents ¶
func (*ProcStats) GetProcessEvent ¶
func (*ProcStats) InitProcStats ¶
func (*ProcStats) MatchProcess ¶
Click to show internal directories.
Click to hide internal directories.