Project

linr

0.0
No release in over 3 years
Low commit activity in last 3 years
A simple UDP client for InfluxDB
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 0.8
~> 0.7
~> 5.10
~> 12.0
~> 0.48
 Project Readme

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