Skip to content
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

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

sileht
Copy link
Contributor

@sileht sileht commented Jun 28, 2018

processes: Add missing options

This change add some missing options:

  • CollectContextSwitch
  • CollectFileDescriptor
  • CollectMemoryMaps

This options can be set globally or per process/processmatch.

@sileht
Copy link
Contributor Author

sileht commented Jun 28, 2018

I will add more tests in the next push

@sileht sileht force-pushed the sileht/processes branch 2 times, most recently from 6ff259e to 604af3e Compare June 28, 2018 09:34
@sileht sileht changed the title processes processes: Add missing options Jun 28, 2018
@juniorsysadmin juniorsysadmin added the enhancement New feature or request label Jun 28, 2018
@sileht sileht force-pushed the sileht/processes branch 2 times, most recently from 5af89e3 to b61462c Compare June 29, 2018 04:31
@sileht
Copy link
Contributor Author

sileht commented Jul 9, 2018

@bastelfreak can you take a look ?

@@ -5,6 +5,9 @@
$interval = undef,
Optional[Array] $processes = undef,
Optional[Array] $process_matches = undef,
Optional[Boolean] $collect_context_switch = undef,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yey datatypes \o/

Copy link
Member

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?

Copy link
Contributor Author

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'),
Copy link
Member

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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please align the = chars

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@bastelfreak bastelfreak added the needs-work not ready to merge just yet label Jul 9, 2018
This change add some missing options:

* CollectContextSwitch
* CollectFileDescriptor
* CollectMemoryMaps

This options can be set globally or per process/processmatch.
@bastelfreak bastelfreak removed the needs-work not ready to merge just yet label Jul 10, 2018
@bastelfreak
Copy link
Member

Thanks @sileht !

@bastelfreak bastelfreak merged commit b3d30c3 into voxpupuli:master Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants