Defined Type: collectd::plugin::postgresql::query

Defined in:
manifests/plugin/postgresql/query.pp

Overview

Parameters:

  • ensure (Any) (defaults to: 'present')
  • statement (String) (defaults to: undef)
  • params (Array) (defaults to: [])
  • results (Array) (defaults to: [{}])
  • minversion (Any) (defaults to: undef)
  • maxversion (Any) (defaults to: undef)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'manifests/plugin/postgresql/query.pp', line 2

define collectd::plugin::postgresql::query (
  $ensure           = 'present',
  String $statement = undef,
  Array $params     = [],
  Array $results    = [{}],
  $minversion       = undef,
  $maxversion       = undef,
) {
  include collectd
  include collectd::plugin::postgresql

  concat::fragment { "collectd_plugin_postgresql_conf_query_${title}":
    order   => '30',
    target  => "${collectd::plugin_conf_dir}/postgresql-config.conf",
    content => template('collectd/plugin/postgresql/query.conf.erb'),
  }
}