Project

infludp

0.0
No commit activity in last 3 years
No release in over 3 years
A minimal, zero dependencies, thread-safe Ruby gem to send metrics via UDP to InfluxDB.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.9
~> 5.8
~> 10.0
 Project Readme

Infludp.

A minimal, zero dependencies, thread-safe Ruby gem to send metrics via UDP to InfluxDB, and nothing else.

Installation.

  • Add infludp to your Gemfile:
gem 'infludp'

Usage.

$metrics = Infludp::Client.new(
  host: '127.0.0.1',
  port: 4444
)

$metrics.send('cpu',
{
  node: 'server1',
  os: 'ubuntu'
},
{
  value: 22
})

Test.

bundle exec rake test:all

Benchmarks.

Rehearsal ---------------------------------------------------------------
1000 metrics:                 0.020000   0.000000   0.020000 (  0.018585)
------------------------------------------------------ total: 0.020000sec

                                  user     system      total        real
1000 metrics:                 0.020000   0.000000   0.020000 (  0.019719)

Contributing.

  1. Fork it ( https://github.com/badshark/infludp/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

License.

MIT