Skip to content

Commit

Permalink
Merge pull request #797 from mrunge/extra_stats
Browse files Browse the repository at this point in the history
Add ExtraStats parameter to virt plugin
  • Loading branch information
bastelfreak authored May 23, 2018
2 parents b42be01 + 8ba458c commit cd9486e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/plugin/virt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Optional[Boolean] $ignore_selected = undef,
Optional[String] $hostname_format = undef,
Optional[String] $interface_format = undef,
Optional[String] $extra_stats = undef,
$interval = undef,
) {

Expand Down
3 changes: 3 additions & 0 deletions templates/plugin/virt.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<% if @hostname_format != nil -%>
HostnameFormat "<%= @hostname_format %>"
<% end -%>
<% if @extra_stats != nil -%>
ExtraStats "<%= @extra_stats %>"
<% end -%>
<% if @interface_format != nil
if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5']) >= 0) -%>
InterfaceFormat "<%= @interface_format %>"
Expand Down

0 comments on commit cd9486e

Please sign in to comment.