linr
A simple UDP client for InfluxDB
Install
$ [sudo] gem install linr
Or add it to your Gemfile, etc.
Usage
Connect to a InfluxDB host via
UDP
and send a series:
require "linr"
client = Linr::Client.new(host: "127.0.0.1", port: 8836)
client.write(
measurement: "cpu_load_short",
tags: { host: "server01", region: "us-west" },
fields: { value: 0.64 },
timestamp: 1434055562
)
References
Testing
Just run
$ rake
Contributing
- Fork it ( https://github.com/jnbt/linr/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request