Skip to content

Commit

Permalink
Merge pull request redhat-openstack#229 from michakrause/rrdcached-st…
Browse files Browse the repository at this point in the history
…atistics

added CollectStatistics option to rrdcached plugin
  • Loading branch information
blkperl committed Jan 24, 2015
2 parents 3b3245d + 88fb530 commit ac4cd27
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
23 changes: 12 additions & 11 deletions manifests/plugin/rrdcached.pp
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# https://collectd.org/wiki/index.php/Rrdcached
class collectd::plugin::rrdcached (
$ensure = present,
$daemonaddress = 'unix:/tmp/rrdcached.sock',
$datadir = '/var/lib/rrdcached/db/collectd',
$createfiles = true,
$createfilesasync = false,
$stepsize = undef,
$heartbeat = undef,
$interval = undef,
$rrarows = undef,
$rratimespan = [],
$xff = undef,
$ensure = present,
$daemonaddress = 'unix:/tmp/rrdcached.sock',
$datadir = '/var/lib/rrdcached/db/collectd',
$createfiles = true,
$createfilesasync = false,
$stepsize = undef,
$heartbeat = undef,
$interval = undef,
$rrarows = undef,
$rratimespan = [],
$xff = undef,
$collectstatistics = undef,
) {
validate_array($rratimespan)
validate_bool($createfiles, $createfilesasync)
Expand Down
3 changes: 3 additions & 0 deletions templates/plugin/rrdcached.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@
<% if @xff -%>
XFF "<%= @xff %>"
<% end -%>
<% unless @collectstatistics.nil? -%>
CollectStatistics "<%= @collectstatistics %>"
<% end -%>
</Plugin>

0 comments on commit ac4cd27

Please sign in to comment.