-
-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
processes: Add missing options #822
Conversation
|
I will add more tests in the next push |
6ff259e
to
604af3e
Compare
5af89e3
to
b61462c
Compare
|
@bastelfreak can you take a look ? |
manifests/plugin/processes.pp
Outdated
| @@ -5,6 +5,9 @@ | |||
| $interval = undef, | |||
| Optional[Array] $processes = undef, | |||
| Optional[Array] $process_matches = undef, | |||
| Optional[Boolean] $collect_context_switch = undef, | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yey datatypes \o/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please align all = chars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| @@ -25,21 +28,29 @@ | |||
| } | |||
| concat::fragment { 'collectd_plugin_processes_conf_header': | |||
| order => '00', | |||
| content => '<Plugin processes>', | |||
| content => epp('collectd/plugin/processes-header.conf.epp'), | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
epp \o/
| @@ -1,14 +1,22 @@ | |||
| define collectd::plugin::processes::process ( | |||
| $process = $name, | |||
| $ensure = 'present' | |||
| $ensure = 'present', | |||
| Optional[Boolean] $collect_context_switch = undef, | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please align the = chars
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
This change add some missing options: * CollectContextSwitch * CollectFileDescriptor * CollectMemoryMaps This options can be set globally or per process/processmatch.
|
Thanks @sileht ! |
processes: Add missing options
This change add some missing options:
This options can be set globally or per process/processmatch.