Puppet Class: profile::prometheus::logstash_exporter

Defined in:
modules/profile/manifests/prometheus/logstash_exporter.pp

Overview

Parameters:

  • prometheus_nodes (Any) (defaults to: hiera('prometheus_nodes'))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'modules/profile/manifests/prometheus/logstash_exporter.pp', line 1

class profile::prometheus::logstash_exporter(
    $prometheus_nodes = hiera('prometheus_nodes'),
) {
    $prometheus_nodes_ferm = join($prometheus_nodes, ' ')

    class { '::prometheus::logstash_exporter': }

    ferm::service { 'prometheus_logstash_exporter':
        proto  => 'tcp',
        port   => '9198',
        srange => "@resolve((${prometheus_nodes_ferm}))",
    }

}