Puppet Class: telegraf::plugins::postgresql

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

Overview

Class: telegraf::plugins::postgresql

this plugin adds the PostgreSQL plugin to telegraf

Parameters

Examples

include telegraf::plugins::postgresql

Authors

Roman Plessl <roman.plessl@prunux.ch>

Copyright 2015 Roman Plessl, Plessl + Burkhardt GmbH



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

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

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

}