Puppet Class: profile::prometheus::druid_exporter

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

Overview

Parameters:

  • prometheus_nodes (Any) (defaults to: lookup('prometheus_nodes'))
  • druid_version (Any) (defaults to: lookup('profile::prometheus::druid_exporter::druid_version', { 'default_value' => '0.12.3' }))


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

class profile::prometheus::druid_exporter (
    $prometheus_nodes = lookup('prometheus_nodes'),
    $druid_version    = lookup('profile::prometheus::druid_exporter::druid_version', { 'default_value' => '0.12.3' })
) {
    prometheus::druid_exporter { 'default':
        druid_version => $druid_version
    }
    $prometheus_ferm_nodes = join($prometheus_nodes, ' ')
    $ferm_srange = "(@resolve((${prometheus_ferm_nodes})) @resolve((${prometheus_ferm_nodes}), AAAA))"

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