Puppet Class: osm::prometheus

Defined in:
modules/osm/manifests/prometheus.pp

Overview

Class osm::prometheus

This installs a prometheus Textfile exporter

Parameters:

  • state_path (Any)
  • prometheus_path (Any)
  • ensure (Any) (defaults to: 'present')


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

class osm::prometheus(
    $state_path,
    $prometheus_path,
    $ensure = 'present'
) {
    file { '/usr/bin/osm_sync_lag':
        ensure => $ensure,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => "puppet:///modules/${module_name}/osm_sync_lag.sh",
    }

    systemd::timer::job { 'osm_sync_lag':
        ensure          => $ensure,
        description     => 'Regular jobs for running osm_sync_lag',
        user            => 'root',
        command         => "/usr/bin/osm_sync_lag ${state_path} ${prometheus_path}",
        logging_enabled => false,
        interval        => {'start' => 'OnCalendar', 'interval' => 'minutely'}
    }
}