Puppet Class: telegraf::plugins::mysql

Defined in:
manifests/plugins/inputs/mysql.pp

Overview

Class: telegraf::plugins::mysql

this plugin adds the MySQL input plugin to telegraf

Parameters

Examples

include telegraf::plugins::mysql

Authors

Roman Plessl <roman.plessl@prunux.ch>

Copyright 2015 Roman Plessl, Plessl + Burkhardt GmbH



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'manifests/plugins/inputs/mysql.pp', line 19

class telegraf::plugins::mysql (
  # [mysql] section of telegraf.conf
)
{

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

}