Puppet Class: profile::druid::monitoring::coordinator

Defined in:
modules/profile/manifests/druid/monitoring/coordinator.pp

Overview

Class: profile::druid::monitoring::coordinator

Sets up Prometheus based monitoring (only jvm) for the druid coordinator.

Parameters:

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


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

class profile::druid::monitoring::coordinator(
    $prometheus_nodes        = hiera('prometheus_nodes'),
) {
    $jmx_exporter_config_file = '/etc/prometheus/druid_coordinator_jmx_exporter.yaml'
    $prometheus_jmx_exporter_coordinator_port = 8181
    $java_opts = "-javaagent:/usr/share/java/prometheus/jmx_prometheus_javaagent.jar=${::ipaddress}:${prometheus_jmx_exporter_coordinator_port}:${jmx_exporter_config_file}"
    profile::prometheus::jmx_exporter { "druid_coordinator_${::hostname}":
        hostname         => $::hostname,
        port             => $prometheus_jmx_exporter_coordinator_port,
        prometheus_nodes => $prometheus_nodes,
        config_file      => $jmx_exporter_config_file,
        config_dir       => '/etc/prometheus',
        source           => 'puppet:///modules/profile/druid/jvm_prometheus_jmx_exporter.yaml',
    }
}