-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Add plugin_type for hiera configuration #139
base: master
Are you sure you want to change the base?
Conversation
Added processors and aggregators
@@ -119,6 +125,8 @@ | |||
Boolean $quiet = $telegraf::params::quiet, | |||
Hash $inputs = $telegraf::params::inputs, | |||
Hash $outputs = $telegraf::params::outputs, | |||
Hash $processors = $telegraf::params::processors, |
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.
since those defaults are identical across every operating system, we don't need to define it within hiera:
Hash $processors = $telegraf::params::processors, | |
Hash $processors = {}, |
Are you able to enforce the datatypes within the hash?
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.
The current params.pp
does not contain the parameters aggregators
or processors
.
@@ -119,6 +125,8 @@ | |||
Boolean $quiet = $telegraf::params::quiet, | |||
Hash $inputs = $telegraf::params::inputs, | |||
Hash $outputs = $telegraf::params::outputs, | |||
Hash $processors = $telegraf::params::processors, | |||
Hash $aggregators = $telegraf::params::aggregators, |
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.
Hash $aggregators = $telegraf::params::aggregators, | |
Hash $aggregators = {}, |
|
||
@outputs.sort.each do |key, values| |
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.
quite a lot of changes here. are you able to add some tests to verify the filecontent? We do something similar in the prometheus module:
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.
This is awesome. The current code only allows to configure outputs
, inputs
, processors
and aggregators
.
This pull request also allows to disable them.
@hanej It would be great if you could add the missing unit tests.
Dear @hanej, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Pull Request (PR) description
This was supposed to be originally part of pull request #80 but it looks like I missed adding it in. This allows you to use hiera with plugin_type to manage your telegraf.conf.