Puppet Class: profile::prometheus::es_exporter

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

Overview

Parameters:

  • prometheus_nodes (Array[Stdlib::Host]) (defaults to: lookup('prometheus_nodes'))


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

class profile::prometheus::es_exporter (
    Array[Stdlib::Host] $prometheus_nodes = lookup('prometheus_nodes')
) {
    $prometheus_ferm_nodes = join($prometheus_nodes, ' ')
    $ferm_srange = "(@resolve((${prometheus_ferm_nodes})) @resolve((${prometheus_ferm_nodes}), AAAA))"

    class { 'prometheus::es_exporter': }

    ferm::service { 'prometheus-es-exporter':
        proto  => 'tcp',
        port   => '9206',
        srange => $ferm_srange,
    }
}