Puppet Class: profile::prometheus::nic_saturation_exporter

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

Overview

Parameters:

  • prometheus_nodes (Array[Stdlib::Host]) (defaults to: lookup('prometheus_nodes'))
  • ensure (Wmflib::Ensure) (defaults to: lookup('profile::prometheus::nic_saturation_exporter::ensure'))


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

class profile::prometheus::nic_saturation_exporter (
    Array[Stdlib::Host] $prometheus_nodes = lookup('prometheus_nodes'),
    Wmflib::Ensure      $ensure           = lookup('profile::prometheus::nic_saturation_exporter::ensure')
) {
    class {'prometheus::nic_saturation_exporter':
        ensure => $ensure,
    }

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

    ferm::service { 'prometheus-nic-saturation-exporter':
        ensure => $ensure,
        proto  => 'tcp',
        port   => '9710',
        srange => $ferm_srange,
    }
}