-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Plugin turbostat #642
Plugin turbostat #642
Conversation
manifests/plugin/turbostat.pp
Outdated
|
||
include ::collectd | ||
|
||
validate_string($core_c_states, $package_c_states, $tcc_activation_temp, $running_average_power_limit) |
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 instead declare the variables as String datatype?
manifests/plugin/turbostat.pp
Outdated
|
||
validate_string($core_c_states, $package_c_states, $tcc_activation_temp, $running_average_power_limit) | ||
if $system_management_interrupt { | ||
validate_bool($system_management_interrupt) |
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.
same here, define as bool please
@bastelfreak Did you mean the puppet 4 type definitions instead validate functions? |
yep |
@bastelfreak What about erb? Should I use epp instead erb? |
@jkroepke can you take a look at this PR as well? |
ee12486
to
9a2fbce
Compare
@bastelfreak sure. I will try it. |
c80492a
to
2e8e315
Compare
fd6bf89
to
db955ee
Compare
Thanks! |
Added plugin turbostat See: https://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_turbostat