spotify / ffwd

a flexible metric forwarding agent
https://spotify.github.io/ffwd/
Apache License 2.0
79 stars 33 forks source link

ffwd with OpenTSDB #219

Open rravi-sift opened 3 years ago

rravi-sift commented 3 years ago

I am looking for some documentation related to how would one go about publishing metrics to OpenTSDB from ffwd.

The http output plugin seems to be able to route metrics only to another ffwd agent. Is there a way to forward metrics to a generic HTTP end-point?

hexedpackets commented 3 years ago

There isn't a way to do that right now but it wouldn't be too hard to implement. It would require a new module that formats metrics into what OpenTSDB expects and sends them along with any other headers or request params that are needed. The HTTP output can be configued to send anywhere but it will send metrics in the same format expected as the input plugin.

I don't think we'll be able to prioritize this soon, but if you/anyone is interested in tackling this we would be happy to review a PR. A good reference might be the SignalFX plugin, which uses the SignalFX Java client to help format messages before sending them over HTTP.