0.0
No release in over 3 years
Low commit activity in last 3 years
Original code by https://github.com/joakimk.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.2.0
~> 1.8.4
~> 3.12
~> 2.11.0
 Project Readme

graphite_client

How is this used at TED

The following apps use this Gem

  • page_builder
  • ted_ed_upload
  • videometrics_mysql
  • identity.ted.com
  • dam_upload

ARG!!!

This gem is really old and is using Jewler to package it self. This method fell out of favor in the community. This app really should use the built in bundler ways to package a gem. As such this gem isn't on the TED Private gemserver .

About

Very simple ruby client for reporting metrics to Graphite.

Original code taken from a Gist by joakimk.

Usage

Reporting the standard way, over TCP

graphite = GraphiteClient.new('graphite_host')
graphite.report('metric name', value, time)
graphite.report('another metric name', another_value, another_time)

Reporting events

graphite_event = GraphiteClient::EventReporter.new('http://graphite_host/events/')
graphite_event.report(:what => 'an event', :tags => ['some', 'tags'], :data => 'some info')
  • When reporting an event, you can (optionally) pass :basic_auth => { :username => 'un', :password => 'pw' } to the GraphiteClient::EventReporter constructor.

    Very simple ruby client for reporting metrics to Graphite.