A Lua sandbox raises an exception when it tries to inject a message
larger than the configured output_limit value (default: 63KiB). The
same applies to the cjson library when trying to encode a Lua structure
resulting in a string larger than the same limit.
This change adds safe_* versions of the inject_message(),
inject_payload() and cjson.encode() functions. It also modifies the
existing Lua plugins to use the safe versions instead.
Change-Id: I7351783e51efa046d483921cb79e14279178a13a
Closes-Bug: #1504141
This change enables the LMA collector to receive OpenStack notifications
and store them into ElasticSearch. Note that we configure an additional
notification topic ('lma_notifications') instead of high-jacking the
topic used by Ceilometer ('notifications').
This adds a new checkbox option in the UI to enable/disable the
notification collection (default value: disabled).
Change-Id: Ie934c244e7cf58f58487ed903aeb94af2e2e0495
This is an import of the initial LMA PoC code. For now, it only covers
the collection of logs (notifications will be added in a subsequent
commit).
There's been a bit of rewrite to:
- decouple the Heka configuration from the LMA collector.
- run the Heka service as non-root when possible (Ubuntu only for now
due to file permission issues on CentOS [1]).
- adapt to version 0.9 of Heka.
[1] https://bugs.launchpad.net/fuel/+bug/1425954
Change-Id: I4472b49a25e18e06984b5b29bdce18f917137bc8