Puppet Class: profile::hive::monitoring::metastore

Defined in:
modules/profile/manifests/hive/monitoring/metastore.pp

Overview

Class: profile::hive::monitoring::metastore

Sets up Prometheus based monitoring for the Hive Metastore. 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
20
# File 'modules/profile/manifests/hive/monitoring/metastore.pp', line 7

class profile::hive::monitoring::metastore(
    $prometheus_nodes        = hiera('prometheus_nodes'),
) {
    $jmx_exporter_config_file = '/etc/prometheus/hive_metastore_jmx_exporter.yaml'
    $prometheus_jmx_exporter_hive_metastore_port = 9183
    profile::prometheus::jmx_exporter { "hive_metastore_${::hostname}":
        hostname         => $::hostname,
        port             => $prometheus_jmx_exporter_hive_metastore_port,
        prometheus_nodes => $prometheus_nodes,
        config_file      => $jmx_exporter_config_file,
        config_dir       => '/etc/prometheus',
        source           => 'puppet:///modules/profile/hive/prometheus_hive_metastore_jmx_exporter.yaml',
    }
}