Open domm opened 9 years ago
Thank you for reporting. I will check new InfluxDB API.
As writing 0.9 is complelty different from 0.8 (it's using a line protocol instead of JSON), I have some doubts if we can find a good way to support both APIs in the same module. But if you're interested: I have written a parser/generator for the line-format https://influxdb.com/docs/v0.9/write_protocols/line.html It's not perfect yet, but good enough. I haven't published it yet (for now it lives inside a work project), but I could release it as something like InfluxDB::LineProtocol
InfluxDB::LineProtocol is now on github: https://github.com/domm/InfluxDB-LineProtocol but it's just a first draft, lagging docs and more tests. It's basically just a dump from some internal code
The JSON API is deprecated but still functional in 0.9. However, some of the JSON keys have changed.
BTW, once this library supports InfluxDB 0.9, would you mind opening a pull request to include it into awesome-influxdb? Thanks!
Add comment on line protocol and InfluxDB::LineProtocol into README. ae0e763efc2a8149850ec6de6c5c1216218fb6de
The API of InfluxDB 0.9 is completely different from 0.8. p5-InfluxDB does not support 0.9. Any plans on providing support?
Though I think that a) 0.9 will need a different Perl namespace, unless you want to make all users of 0.8 very unhappy b) the new API (at least for writing data) is so simple that you can in fact just use LWP (or whatever)
Greetings, domm