This is a Ruby client for simplifying interactions with OpenTSDB.
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.
ruby 1.9.3+
@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)
Copyright 2012 John Ewart john@johnewart.net. Released under the MIT license. See the file LICENSE for further details.