Gathers information about processes running on the host. See https://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_processes and https://collectd.org/wiki/index.php/Plugin:Processes for more information on the configuration options.
Example:
procPath: /proc
monitors:
- type: collectd/processes
processes:
- mysql
- myapp
processMatch:
docker: "docker.*"
collectContextSwitch: true
The above config will send process metrics for processes named mysql and
myapp, along with additional metrics on the number of context switches the
process has made. Also, all processes that start with docker
will have
their process metrics aggregated together and sent with a plugin_instance
value of docker
.
Monitor Type: collectd/processes
Accepts Endpoints: No
Multiple Instances Allowed: No
Config option | Required | Type | Description |
---|---|---|---|
processes |
no | list of strings |
A list of process names to match |
processMatch |
no | map of strings |
A map with keys specifying the plugin_instance value to be sent for the values which are regexes that match process names. See example in description. |
collectContextSwitch |
no | bool |
Collect metrics on the number of context switches made by the process (default: false ) |
procFSPath |
no | string |
(Deprecated) Please set the agent configuration procPath instead of this monitor configuration option. The path to the proc filesystem -- useful to override if the agent is running in a container. |