Puppet Class: profile::prometheus::apache_exporter

Defined in:
modules/profile/manifests/prometheus/apache_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
# File 'modules/profile/manifests/prometheus/apache_exporter.pp', line 1

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

    ferm::service { 'prometheus-apache_exporter':
        proto  => 'tcp',
        port   => '9117',
        srange => $ferm_srange,
    }
}