Defined Type: profile::prometheus::elasticsearch_exporter

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

Overview

Define: profile::prometheus::elasticsearch_exporter

Configures a prometheus elasticsearch exporter and sets up appropriate firewall rules for collection from the exporter.

Parameters

prometheus_port

Port used by the exporter for the listen socket

elasticsearch_port

Port to monitor elasticsearch on

Parameters:

  • prometheus_port (Stdlib::Port)
  • elasticsearch_port (Stdlib::Port)


13
14
15
16
17
18
19
20
21
# File 'modules/profile/manifests/prometheus/elasticsearch_exporter.pp', line 13

define profile::prometheus::elasticsearch_exporter(
    Stdlib::Port $prometheus_port,
    Stdlib::Port $elasticsearch_port,
) {
    prometheus::elasticsearch_exporter { "localhost:${elasticsearch_port}":
        elasticsearch_port => $elasticsearch_port,
        prometheus_port    => $prometheus_port,
    }
}