Puppet Class: profile::prometheus::icinga_exporter

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

Overview

Parameters:

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


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

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

  class { 'prometheus::icinga_exporter': }

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