Puppet Class: collectd::plugin::write_graphite

Defined in:
manifests/plugin/write_graphite.pp

Overview

Parameters:

  • ensure (Any) (defaults to: present)
  • graphitehost (Any) (defaults to: 'localhost')
  • graphiteport (Any) (defaults to: 2003)
  • storerates (Any) (defaults to: true)
  • graphiteprefix (Any) (defaults to: 'collectd.')
  • graphitepostfix (Any) (defaults to: undef)
  • interval (Any) (defaults to: undef)
  • escapecharacter (Any) (defaults to: '_')
  • alwaysappendds (Any) (defaults to: false)
  • protocol (Any) (defaults to: 'tcp')
  • separateinstances (Any) (defaults to: false)
  • logsenderrors (Any) (defaults to: true)


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

class collectd::plugin::write_graphite (
  $ensure            = present,
  $graphitehost      = 'localhost',
  $graphiteport      = 2003,
  $storerates        = true,
  $graphiteprefix    = 'collectd.',
  $graphitepostfix   = undef,
  $interval          = undef,
  $escapecharacter   = '_',
  $alwaysappendds    = false,
  $protocol          = 'tcp',
  $separateinstances = false,
  $logsenderrors     = true,
) {
  validate_bool($storerates)
  validate_bool($separateinstances)
  validate_bool($logsenderrors)

  collectd::plugin {'write_graphite':
    ensure   => $ensure,
    content  => template('collectd/plugin/write_graphite.conf.erb'),
    interval => $interval,
  }
}