Fix AFD message matcher for multivalue metrics

Change-Id: Id0bafe4219aec06228e540c913e167a4c4bf9350
Closes-Bug: #1649575
This commit is contained in:
Simon Pasquier 2016-12-14 11:21:36 +01:00
parent 26c890084d
commit 2bec604175
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ define lma_collector::afd_filter (
heka::filter::sandbox { "afd_${type}_${cluster_name}_${logical_name}":
config_dir => $lma_collector::params::metric_config_dir,
filename => "${lma_collector::params::plugins_dir}/filters/afd.lua",
message_matcher => "(Type == \'metric\' || Type == \'heka.sandbox.metric\') && (${message_matcher})",
message_matcher => join(["(Type == \'metric\' || Type == \'heka.sandbox.metric\' ",
"|| Type == \'heka.sandbox.multivalue_metric\') && (${message_matcher})"], ''),
ticker_interval => 10,
config => {
hostname => $::hostname,