Puppet Class: profile::prometheus::varnishkafka_exporter

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

Overview

Parameters:

  • prometheus_nodes (Array[String]) (defaults to: lookup('prometheus_nodes'))
  • stats_default (Hash) (defaults to: lookup('profile::prometheus::varnishkafka_exporter::stats_default'))


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

class profile::prometheus::varnishkafka_exporter (
  Array[String] $prometheus_nodes = lookup('prometheus_nodes'),
  Hash $stats_default = lookup('profile::prometheus::varnishkafka_exporter::stats_default'),
) {
  $prometheus_ferm_nodes = join($prometheus_nodes, ' ')
  $ferm_srange = "(@resolve((${prometheus_ferm_nodes})) @resolve((${prometheus_ferm_nodes}), AAAA))"

  class { 'prometheus::varnishkafka_exporter':
    stats_default => $stats_default
  }

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