Puppet Class: beats::modules::metricbeat::apache
- Defined in:
-
manifests/modules/metricbeat/apache.pp
Summary
Configuration of apache metricbeat module
Overview
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'manifests/modules/metricbeat/apache.pp', line 2
class beats::modules::metricbeat::apache (
Boolean $enable,
Array[String] $hosts,
Hash[String, Any] $override = {},
) {
if $hosts =~ String {
$_hosts = [$hosts]
} else {
$_hosts = $hosts
}
$final = deep_merge({
'module' => 'apache',
'enabled' => $enable,
#"metricsets" => ["status"],
'period' => '10s',
'hosts' => $_hosts,
#"username" => "user",
#"password" => "secret",
}, $override)
}
|