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: ruby gem 'infludp'

Usage.

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

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

Test.

bundle exec rake test:all

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