commit | e1eb3afc147710f77294d7c1314b13b4a6514982 | [log] [tgz] |
---|---|---|
author | Éric Lemoine <elemoine@mirantis.com> | Fri Dec 02 12:56:37 2016 +0000 |
committer | Éric Lemoine <elemoine@mirantis.com> | Fri Dec 02 12:56:44 2016 +0000 |
tree | c07eab931bdd2359e23a1a925927cdc2807f5712 | |
parent | 33b6c23248aeaa71fbb320f1cbaeb7e662226bed [diff] |
Take rule value field into account An alarm rule may include a field "value" specifying the name of the value field to use. That field was not taken into account.
diff --git a/heka/files/lma_alarm.lua b/heka/files/lma_alarm.lua index b826112..56530d3 100644 --- a/heka/files/lma_alarm.lua +++ b/heka/files/lma_alarm.lua
@@ -35,6 +35,9 @@ {%- endfor %} }, {%- endif %} + {%- if _rule.value is defined %} + ['value'] = '{{ _rule.value }}', + {%- endif %} }, {%- endfor %} },