Disable Heka "self-monitoring"

Change-Id: If548c132d5847b8223284a2bb0ad288c695d9ec3
Related-bug: #1643280
This commit is contained in:
Swann Croiset 2016-12-09 11:41:39 +01:00 committed by Simon Pasquier
parent 81962e63d4
commit 5b65f279ce
2 changed files with 9 additions and 0 deletions

View File

@ -82,6 +82,7 @@ lma_collector::heka { 'log_collector':
groups => $additional_groups,
install_init_script => $install_heka_init_script,
version => $heka_version,
heka_monitoring => false,
require => Class['lma_collector'],
}
@ -91,6 +92,7 @@ lma_collector::heka { 'metric_collector':
install_init_script => $install_heka_init_script,
version => $heka_version,
poolsize => $poolsize,
heka_monitoring => false,
require => Class['lma_collector'],
}

View File

@ -111,8 +111,15 @@ define lma_collector::heka (
}
# Heka self-monitoring
if $heka_monitoring {
$heka_monitoring_ensure = present
} else {
$heka_monitoring_ensure = absent
}
if $heka_monitoring {
heka::filter::sandbox { "heka_monitoring_${title}":
ensure => $heka_monitoring_ensure,
config_dir => $config_dir,
filename => "${lma_collector::params::plugins_dir}/filters/heka_monitoring.lua",
message_matcher => "Type == 'heka.all-report'",