Defined Type: profile::prometheus::burrow_exporter

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

Overview

Prometheus Burrow (Kafka Consumer lag monitor) metrics exporter.

Parameters

*$burrow_addr*

The ip:port combination of the Burrow instance to poll data from.

*$hostname*

The host to listen on. The host/port combination will also be used to generate Prometheus targets.

*$port*

The port to listen on.

api_version

Burrow API version to use. Default: 3

Parameters:

  • prometheus_nodes (Array[Stdlib::Host])
  • burrow_addr (Any) (defaults to: 'localhost:8000')
  • hostname (Any) (defaults to: '0.0.0.0')
  • port (Any) (defaults to: '9000')
  • api_version (Any) (defaults to: 3)


19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'modules/profile/manifests/prometheus/burrow_exporter.pp', line 19

define profile::prometheus::burrow_exporter(
    Array[Stdlib::Host] $prometheus_nodes,
    $burrow_addr = 'localhost:8000',
    $hostname = '0.0.0.0',
    $port = '9000',
    $api_version = 3,
) {
    prometheus::burrow_exporter { $title:
        burrow_addr  => $burrow_addr,
        metrics_addr => "${hostname}:${port}",
        interval     => 30,
        api_version  => 3,
    }

    $prometheus_ferm_nodes = join($prometheus_nodes, ' ')
    $ferm_srange = "(@resolve((${prometheus_ferm_nodes})) @resolve((${prometheus_ferm_nodes}), AAAA))"

    ferm::service { "prometheus-burrow_exporter-${title}":
        proto  => 'tcp',
        port   => $port,
        srange => $ferm_srange,
    }
}