Puppet Class: beats::modules::metricbeat::nginx

Defined in:
manifests/modules/metricbeat/nginx.pp

Summary

Configuration of nginx metricbeat module

Overview

Parameters:

  • enable (Boolean)
  • hosts (Array[String])
  • status_path (String)
  • override (Hash[String, Any]) (defaults to: {})


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'manifests/modules/metricbeat/nginx.pp', line 2

class beats::modules::metricbeat::nginx (
  Boolean           $enable,
  Array[String]     $hosts,
  String            $status_path,
  Hash[String, Any] $override = {},
) {
  if $hosts =~ String {
    $_hosts = [$hosts]
  } else {
    $_hosts = $hosts
  }

  $final = deep_merge({
      'module'             => 'nginx',
      'enabled'            => $enable,
      'metricsets'         => ['stubstatus'],
      'period'             => '10s',
      'hosts'              => $_hosts,
      'server_status_path' => $status_path,
      #"username" => "user",
      #"password" => "secret",
  }, $override)
}