Defined Type: profile::prometheus::burrow_exporter

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

Overview

SPDX-License-Identifier: Apache-2.0 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:

  • 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)


20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'modules/profile/manifests/prometheus/burrow_exporter.pp', line 20

define profile::prometheus::burrow_exporter(
    $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,
    }
}