diff --git a/README.md b/README.md index 7bb37bdb4..310e437ca 100644 --- a/README.md +++ b/README.md @@ -648,6 +648,8 @@ class { 'collectd::plugin::postgresql': ####Class: `collectd::plugin::processes` +You can either specify processes / process matches at once: + ```puppet class { 'collectd::plugin::processes': processes => ['process1', 'process2'], @@ -657,6 +659,17 @@ class { 'collectd::plugin::processes': } ``` +Or define single processes / process matches: +```puppet +collectd::plugin::processes::process { 'collectd' : } +``` + +```puppet +collectd::plugin::processes::processmatch { 'elasticsearch' : + regex => '.*java.*org.elasticsearch.bootstrap.Elasticsearch' +} +``` + ####Class: `collectd::plugin::python` * `modulepaths` is an array of paths where will be Collectd looking for Python modules, Puppet will ensure that each of specified directories exists and it is owned by `root` (and `chmod 0750`). If you don't specify any `modulepaths` a default value for given distribution will be used.