Skip to content

johnewart/ruby-opentsdb

Repository files navigation

OpenTSDB Ruby client

Stuff

What is this?

This is a Ruby client for simplifying interactions with OpenTSDB.

What does it do?

As of this instant, not a whole lot except wrap the "put" method in a quick-and-dirty style. This will eventually grow to be much more useful as I expand functionality.

Requirements

ruby 1.9.3+

Quick example

  @client = OpenTSDB::Client.new(hostname: 'localhost', port: 4242)

  sample = {
    metric: 'double_rainbow.count',
    value: 42,
    timestamp: Time.now.to_i,
    tags: { factor: 'awesome', host: 'ponies' }
  }

  @client.put(sample)

License

Copyright 2012 John Ewart john@johnewart.net. Released under the MIT license. See the file LICENSE for further details.

About

Ruby OpenTSDB client gem

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages