Project

opentsdb

0.01
No commit activity in last 3 years
No release in over 3 years
A Ruby implementation of a client library for sending data points to OpenTSDB
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0.3.8
 Project Readme

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.