Skip to content
A simple UDP client for InfluxDB
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
.rubocop.yml
.ruby-gemset
.ruby-version
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
linr.gemspec

README.md

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
You can’t perform that action at this time.