Puppet Class: profile::oozie::monitoring::server

Defined in:
modules/profile/manifests/oozie/monitoring/server.pp

Overview

Class: profile::oozie::monitoring::server

Sets up Prometheus based monitoring for the Oozie Server. This profile takes care of installing the Prometheus exporter and setting up its configuration file, but it does not instruct the target JVM to use it.

Parameters:

  • prometheus_nodes (Any) (defaults to: hiera('prometheus_nodes'))


7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/profile/manifests/oozie/monitoring/server.pp', line 7

class profile::oozie::monitoring::server(
    $prometheus_nodes        = hiera('prometheus_nodes'),
) {
    $jmx_exporter_config_file = '/etc/oozie/prometheus_oozie_server_jmx_exporter.yaml'
    $prometheus_jmx_exporter_oozie_server_port = 12000
    profile::prometheus::jmx_exporter { "oozie_server_${::hostname}":
        hostname         => $::hostname,
        port             => $prometheus_jmx_exporter_oozie_server_port,
        prometheus_nodes => $prometheus_nodes,
        config_file      => $jmx_exporter_config_file,
        source           => 'puppet:///modules/profile/oozie/prometheus_oozie_server_jmx_exporter.yaml',
    }
}