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
# 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",
    }

    cron { 'osm_sync_lag':
        ensure  => $ensure,
        command => "/usr/bin/osm_sync_lag ${state_path} ${prometheus_path} >/dev/null 2>&1",
    }
}