Defined Type: collectd::plugin::write_graphite::carbon

Defined in:
manifests/plugin/write_graphite/carbon.pp

Overview

a single graphite backend

Parameters:

  • ensure (Any) (defaults to: 'present')
  • graphitehost (Stdlib::Host) (defaults to: 'localhost')
  • graphiteport (Stdlib::Port) (defaults to: 2003)
  • storerates (Boolean) (defaults to: true)
  • graphiteprefix (Any) (defaults to: 'collectd.')
  • graphitepostfix (Any) (defaults to: undef)
  • interval (Any) (defaults to: undef)
  • escapecharacter (Any) (defaults to: '_')
  • alwaysappendds (Boolean) (defaults to: false)
  • protocol (Any) (defaults to: 'tcp')
  • separateinstances (Boolean) (defaults to: false)
  • logsenderrors (Boolean) (defaults to: true)
  • reconnectinterval (Integer) (defaults to: 0)
  • reversehost (Boolean) (defaults to: false)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/plugin/write_graphite/carbon.pp', line 2

define collectd::plugin::write_graphite::carbon (
  $ensure                    = 'present',
  Stdlib::Host $graphitehost = 'localhost',
  Stdlib::Port $graphiteport = 2003,
  Boolean $storerates        = true,
  $graphiteprefix            = 'collectd.',
  $graphitepostfix           = undef,
  $interval                  = undef,
  $escapecharacter           = '_',
  Boolean $alwaysappendds    = false,
  $protocol                  = 'tcp',
  Boolean $separateinstances = false,
  Boolean $logsenderrors     = true,
  Integer $reconnectinterval = 0,
  Boolean $reversehost       = false,
) {
  include collectd
  include collectd::plugin::write_graphite

  concat::fragment { "collectd_plugin_write_graphite_conf_${title}_${protocol}_${graphiteport}":
    order   => '50', # somewhere between header and footer
    target  => $collectd::plugin::write_graphite::graphite_conf,
    content => template('collectd/plugin/write_graphite/carbon.conf.erb'),
  }
}