Puppet Class: profile::prometheus::cadvisor_exporter

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

Overview

Parameters:

  • port (Stdlib::Port) (defaults to: lookup('profile::prometheus::cadvisor_exporter::port'))
  • prometheus_nodes (Array[String]) (defaults to: lookup('prometheus_nodes'))


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

class profile::prometheus::cadvisor_exporter (
  Stdlib::Port $port = lookup('profile::prometheus::cadvisor_exporter::port'),
  Array[String] $prometheus_nodes = lookup('prometheus_nodes'),
) {
  class { 'prometheus::cadvisor_exporter':
    port   => $port,
    ensure => 'present',
  }

  $prometheus_ferm_nodes = join($prometheus_nodes, ' ')
  $ferm_srange = "(@resolve((${prometheus_ferm_nodes})) @resolve((${prometheus_ferm_nodes}), AAAA))"
  ferm::service { 'prometheus-cadvisor-exporter':
    proto  => 'tcp',
    port   => $port,
    srange => $ferm_srange,
  }
}