Puppet Class: profile::prometheus::icinga_exporter

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

Overview

Parameters:

  • active_host (Stdlib::Host) (defaults to: lookup('profile::icinga::active_host'))
  • partners (Array[Stdlib::Host]) (defaults to: lookup('profile::icinga::partners'))
  • alertmanagers (Array[String]) (defaults to: lookup('alertmanagers'))
  • public_domain (String) (defaults to: lookup('public_domain'))
  • label_teams_config (Optional[Hash[String[1], Struct[ Optional[alertname] => Array[String[1]], Optional[instance] => Array[String[1]]]]]) (defaults to: lookup('profile::prometheus::icinga_exporter::label_teams_config', {default_value => undef}))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/profile/manifests/prometheus/icinga_exporter.pp', line 1

class profile::prometheus::icinga_exporter (
    Stdlib::Host               $active_host = lookup('profile::icinga::active_host'),
    Array[Stdlib::Host]        $partners    = lookup('profile::icinga::partners'),
    Array[String]              $alertmanagers = lookup('alertmanagers'),
    String                     $public_domain = lookup('public_domain'),
    Optional[Hash[String[1], Struct[
      Optional[alertname] => Array[String[1]],
      Optional[instance]  => Array[String[1]]]]] $label_teams_config = lookup('profile::prometheus::icinga_exporter::label_teams_config', {default_value => undef}),
) {

    class { 'prometheus::icinga_exporter':
        export_problems    => $active_host == $::fqdn,
        alertmanagers      => $alertmanagers,
        label_teams_config => $label_teams_config,
        extinfo_url        => "https://icinga.${public_domain}/cgi-bin/icinga/extinfo.cgi",
    }
}