Unless you go out of your way to configure it otherwise, the DashboardOutput will automatically catch any messages that a SandboxFilter emits and make the payload available via HTTP. You should be able to just use the cjson module to generate the JSON that you want and `inject_payload` to emit a message with that JSON as the payload and have it show up in the dashboard.
-r On 12/30/2014 12:29 PM, Blezek, Daniel J. wrote:
Hi, Fairly new to Heka... Would like to make a "poor man's" REST service on my hekad server. Periodically, I'd like to have Heka save some statistics to a JSON file that would be available from the [Heka] dashboard web server. We would then have another service (likely Freeboard https://github.com/Freeboard/freeboard) pick up the JSON and display a dashboard. The Lua is no problem, but I couldn't find any pointers on how to get this started. How http_status.lua and stat_graph.lua save their data into /var/cache/hekad/dashboard/data appears to be magick to me. Any pointers welcome, -dan _______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka
_______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka

