Puppet Class: telegraf::plugins::outputs::opentsdb

Defined in:
manifests/plugins/outputs/opentsdb.pp

Overview

Class: telegraf::plugins::opentsdb

this plugin adds the OpenTSDB output plugin to telegraf

IMPORTANT: please check the InfluxDB backend is disabled

Parameters

opentsdb_server

opentsdb server

opentsdb_port

opentsdb port

opentsdb_prefix

opentsdb metric prefix

Examples

include telegraf::plugins::outputs::opentsdb

Authors

Roman Plessl <roman.plessl@nine.ch>

Copyright 2015 Roman Plessl, Nine Internet Solutions AG

Parameters:

  • opentsdb_server (Any) (defaults to: 'my.opentsdb.server.domain.com')
  • opentsdb_port (Any) (defaults to: 4242)
  • opentsdb_prefix (Any) (defaults to: 'my.metrics.telegraf.')


30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'manifests/plugins/outputs/opentsdb.pp', line 30

class telegraf::plugins::outputs::opentsdb (
  # [outputs.opentsdb] section of telegraf.conf
  $opentsdb_server = 'my.opentsdb.server.domain.com',
  $opentsdb_port   = 4242,
  $opentsdb_prefix = 'my.metrics.telegraf.',
){

  file { "${::telegraf::config_directory}/01-opentsdb.conf":
    ensure  => file,
    content => template('telegraf/plugins/outputs/01-opentsdb.conf.erb'),
    mode    => '0644',
    owner   => 'root',
    group   => 'telegraf',
    notify  => Service['telegraf'];
  }

}