Puppet Class: collectd::plugin::write_prometheus

Defined in:
manifests/plugin/write_prometheus.pp

Overview

Configures write_prometheus plugin.

Parameters:

  • port (Stdlib::Port) (defaults to: 9103)

    Defines the port on which to accept scrape requests from Prometheus.

  • ip (Optional[Stdlib::IP::Address]) (defaults to: undef)

    Defines the IP address to bind to. In not specified, the listener will bind to all IPs present.

  • ensure (Any) (defaults to: 'present')


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

class collectd::plugin::write_prometheus (
  Stdlib::Port $port = 9103,
  Optional[Stdlib::IP::Address] $ip = undef,
  $ensure = 'present',
) {
  include collectd

  collectd::plugin { 'write_prometheus':
    ensure  => $ensure,
    content => template('collectd/plugin/write_prometheus.conf.erb'),
  }
}