Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /