Skip to content

jnbt/linr

Repository files navigation

linr

Gem Version Build Status Coverage Status Code Climate Inline docs Yard Docs

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

  1. Fork it ( https://github.com/jnbt/linr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

A simple UDP client for InfluxDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages