Defined Type: prometheus::blackbox_check_endpoint

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

Overview

Parameters:

  • targets (Array[String])
  • site (String) (defaults to: $::site)
  • job_name (String) (defaults to: $title)
  • params (Hash) (defaults to: {})
  • metrics_path (String) (defaults to: '/probe')
  • timeout (Integer) (defaults to: 10)
  • exporter_address (String) (defaults to: '127.0.0.1:9115')
  • relabel_configs (Array[Hash]) (defaults to: [ { 'source_labels' => ['__address__'], 'target_label' => '__param_target', }, { 'source_labels' => ['__param_target'], 'target_label' => 'instance', }, { 'target_label' => '__address__', 'replacement' => $exporter_address, }, ])


30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'modules/prometheus/manifests/blackbox_check_endpoint.pp', line 30

define prometheus::blackbox_check_endpoint (
    Array[String] $targets,
    String $site = $::site,
    String $job_name = $title,
    Hash $params = {},
    String $metrics_path = '/probe',
    Integer $timeout = 10,
    String $exporter_address = '127.0.0.1:9115',
    Array[Hash] $relabel_configs = [
        {
            'source_labels' => ['__address__'],
            'target_label'  => '__param_target',
        },
        {
            'source_labels' => ['__param_target'],
            'target_label'  => 'instance',
        },
        {
            'target_label' => '__address__',
            'replacement'  => $exporter_address,
        },
    ]
) {
    # Placeholder define will record options into PuppetDB to be reconstituted by a query
}