node 'nagios.h1.int.pdp7.net' { class {'nagios': otel_host => 'clickhouse.h1.int.pdp7.net', } class {'nagios::k8s':} $k8s_hosts = lookup("groups.k8s") $k8s_hosts.each |String $k8s_host| { nagios_host {$k8s_host: use => 'generic-host', max_check_attempts => 5, contact_groups => 'admins', hostgroups => 'k8s', check_command => 'check-host-alive', } } package {'nagios-plugins-pgsql':} class {'otel': version => '0.88.0', } # TODO: add otelcol-contrib user to nagios group file {'/etc/otelcol-contrib/config.yaml': content => @("EOT") exporters: otlp: endpoint: clickhouse.h1.int.pdp7.net:4317 tls: insecure: true receivers: filelog: include: [ /var/log/nagios/nagios.log ] operators: - type: regex_parser regex: '^\[(?P