Defined Type: profile::prometheus::redis_exporter

Defined in:
modules/profile/manifests/prometheus/redis_exporter.pp

Overview

Define profile::prometheus::redis_exporter

Install an instance of prometheus-redis-exporter.

title

The port redis server is listening on

password

The password to be used to access redis.

hostname

The hostname for redis-exporter to listen on.

port

The port for redis-exporter to listen on.

Parameters:

  • password (String)
  • hostname (Stdlib::Host) (defaults to: $facts['hostname'])
  • port (Stdlib::Port) (defaults to: +)
  • arguments (String) (defaults to: '')


17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'modules/profile/manifests/prometheus/redis_exporter.pp', line 17

define profile::prometheus::redis_exporter (
    String       $password,
    Stdlib::Host $hostname  = $facts['hostname'],
    Stdlib::Port $port      = Integer($title) + 10000,
    String       $arguments = '',
){

    prometheus::redis_exporter { $title:
        hostname  => $hostname,
        port      => $port,
        password  => $password,
        arguments => $arguments,
    }
}