Puppet Class: profile::prometheus::node_exporter

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

Overview

Parameters:

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


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'modules/profile/manifests/prometheus/node_exporter.pp', line 7

class profile::prometheus::node_exporter (
    Array[Stdlib::Host] $prometheus_nodes = lookup('prometheus_nodes'),
) {
    # We will fix the style break in a later PS
    include prometheus::node_exporter  # lint:ignore:wmf_styleguide


    $_prometheus_nodes = $prometheus_nodes.join(' ')
    $ferm_srange = "(@resolve((${_prometheus_nodes})) @resolve((${_prometheus_nodes}), AAAA))"

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