HubSpot / BuckyServer

Node server that receives metric data over HTTP & forwards to your service of choice
http://github.hubspot.com/bucky
MIT License
195 stars 33 forks source link

Update lib to support influxdb v0.9 #16

Closed mr337 closed 9 years ago

mr337 commented 9 years ago

This is an update to the influxdb library to work with the latest v0.9+ of influx db. This PR simply changes the format the data is fed into the influxdb [1].

It does not support tags and I'm not for sure the best way to support tags in a general purpose fashion. I have some code to support tagging, but it is specific to our DNS and route structure. If anyone has any ideas I'd be happy to entertain them.

I left the JSON code since it is supported in v0.9 but already deprecated and to be removed with v1.0 [2].

[1] - https://influxdb.com/docs/v0.9/write_protocols/line.html [2] - https://influxdb.com/docs/v0.9/write_protocols/json.html

zackbloom commented 9 years ago

I ended up merging https://github.com/HubSpot/BuckyServer/pull/15, as it maintains support for 0.8.0.

mr337 commented 9 years ago

Gah, yeah, so I forgot to check the PRs and only checked issues and didn't see anything and starting coding. The only thing I can do here is reuse some of this code to dump the JSON format and move to the new protocol.