Reporter gist for sending JSON to arbitrary HTTP endpoint

23 views
Skip to first unread message

Jonny Wray

unread,
Feb 25, 2016, 6:49:31 AM2/25/16
to metrics-user
Hi,

I put up a gist that implements a generic JSON reporter with a pluggable writer destination. My use case was needing to send a JSON representation of the metrics to Logstash via HTTP.

Gist has two writers; one sends JSON to stdout and the other POSTs to a specified HTTP URL. Other writers should be ease to implement if needed.

Note the HTTP implementation is pretty simple with no authentication etc at the moment as I don't need it.

Link:


hope it's useful.

cheers
Jonny
Reply all
Reply to author
Forward
0 new messages