Defined Type: telegraf::aggregator

Defined in:
manifests/aggregator.pp

Overview

Parameters:

  • plugin_type (String) (defaults to: $name)
  • options (Optional[Array]) (defaults to: undef)


10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/aggregator.pp', line 10

define telegraf::aggregator (
  String          $plugin_type = $name,
  Optional[Array] $options     = undef,
) {
  include telegraf

  file { "${telegraf::config_folder}/${name}.conf":
    content => inline_template("<%= require 'toml-rb'; TomlRB.dump({'aggregators'=>{'${plugin_type}'=>@options}}) %>"),
    require => Class['telegraf::config'],
    notify  => Class['telegraf::service'],
  }
}