Puppet Class: profile::prometheus::memcached_exporter

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

Overview

Parameters:

  • prometheus_nodes (Array[Stdlib::Host]) (defaults to: lookup('prometheus_nodes'))
  • arguments (String) (defaults to: lookup('profile::prometheus::memcached_exporter::arguments'))


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

class profile::prometheus::memcached_exporter (
    Array[Stdlib::Host] $prometheus_nodes = lookup('prometheus_nodes'),
    String              $arguments        = lookup('profile::prometheus::memcached_exporter::arguments'),
) {
    prometheus::memcached_exporter { 'default':
        arguments => $arguments,
    }
    $prometheus_ferm_nodes = join($prometheus_nodes, ' ')
    $ferm_srange = "(@resolve((${prometheus_ferm_nodes})) @resolve((${prometheus_ferm_nodes}), AAAA))"

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