The dashboard automatically picks up messages that SandboxFilter plugins emit, 
unless you go out of your way to configure it otherwise. It should work to just 
use cjson to generate the json that you want and then inject_payload to send it 
to the router.

-r

On December 30, 2014 12:29:31 PM PST, "Blezek, Daniel J." 
<[email protected]> 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

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka

Reply via email to