Defined Type: prometheus::mcrouter_exporter

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

Overview

Parameters:

  • arguments (Any) (defaults to: '')


10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'modules/prometheus/manifests/mcrouter_exporter.pp', line 10

define prometheus::mcrouter_exporter (
    $arguments = '',
) {
    require_package('prometheus-mcrouter-exporter')

    file { '/etc/default/prometheus-mcrouter-exporter':
        ensure  => present,
        mode    => '0444',
        owner   => 'root',
        group   => 'root',
        content => "ARGS=\"${arguments}\"",
        notify  => Service['prometheus-mcrouter-exporter'],
    }

    service { 'prometheus-mcrouter-exporter':
        ensure  => running,
        require => Package['prometheus-mcrouter-exporter'],
    }
}