Puppet Class: profile::prometheus::varnish_exporter

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

Overview

Parameters:

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


10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'modules/profile/manifests/prometheus/varnish_exporter.pp', line 10

class profile::prometheus::varnish_exporter(
        $nodes = hiera('prometheus_nodes')
) {
    $prometheus_ferm_nodes = join($nodes, ' ')
    $ferm_srange = "(@resolve((${prometheus_ferm_nodes})) @resolve((${prometheus_ferm_nodes}), AAAA))"

    prometheus::varnish_exporter{ 'frontend':
        instance       => 'frontend',
        listen_address => ':9331',
    }

    ferm::service { 'prometheus-varnish-exporter-frontend':
        proto  => 'tcp',
        port   => '9331',
        srange => $ferm_srange,
    }
}