Defined Type: prometheus::varnish_2layer

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

Overview

Parameters:

  • targets_path (Any)
  • cache_name (Any)


4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/prometheus/manifests/varnish_2layer.pp', line 4

define prometheus::varnish_2layer(
    $targets_path,
    $cache_name,
) {
    prometheus::cluster_config{ "${cache_name}_frontend":
        dest    => "${targets_path}/varnish-${cache_name}_${::site}_frontend.yaml",
        site    => $::site,
        cluster => "cache_${cache_name}",
        port    => 9331,
        labels  => {
          'layer' => 'frontend',
        },
    }
}