Puppet Class: keyholder::monitoring

Defined in:
modules/keyholder/manifests/monitoring.pp

Overview

SPDX-License-Identifier: Apache-2.0

Class: keyholder::monitoring

Provisions a Prometheus node.d collector that ensures the keyholder is armed with all configured identities.

Parameters:

  • ensure (Wmflib::Ensure) (defaults to: present)


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'modules/keyholder/manifests/monitoring.pp', line 7

class keyholder::monitoring(
    Wmflib::Ensure $ensure = present,
) {
    file { '/usr/local/sbin/prometheus-keyholder-exporter':
        ensure => $ensure,
        source => 'puppet:///modules/keyholder/prometheus-keyholder-exporter.sh',
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
    }

    systemd::timer::job { 'prometheus-keyholder-exporter':
        ensure      => $ensure,
        description => 'Regular job to collect Keyholder armed state as Prometheus metrics',
        user        => 'root',
        command     => '/usr/local/sbin/prometheus-keyholder-exporter',
        interval    => {'start' => 'OnCalendar', 'interval' => 'minutely'},
    }
}