Puppet Class: profile::prometheus::icinga_exporter
- Defined in:
- modules/profile/manifests/prometheus/icinga_exporter.pp
Overview
SPDX-License-Identifier: Apache-2.0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'modules/profile/manifests/prometheus/icinga_exporter.pp', line 2
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",
}
}
|