Puppet Class: profile::prometheus::nutcracker_exporter

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

Overview

Parameters:

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


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'modules/profile/manifests/prometheus/nutcracker_exporter.pp', line 1

class profile::prometheus::nutcracker_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))"

    ensure_packages('prometheus-nutcracker-exporter')

    service { 'prometheus-nutcracker-exporter':
        ensure  => running,
    }

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

    profile::auto_restarts::service { 'prometheus-nutcracker-exporter': }
}