Puppet Class: profile::prometheus::varnish_exporter

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

Overview

Parameters:

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


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

class profile::prometheus::varnish_exporter(
    Array[Stdlib::Host] $nodes = lookup('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,
    }
}