https://github.com/tedconf/graphite_client
Simple ruby client for Graphite.
https://github.com/tedconf/graphite_client
Last synced: 6 months ago
JSON representation
Simple ruby client for Graphite.
- Host: GitHub
- URL: https://github.com/tedconf/graphite_client
- Owner: tedconf
- License: mit
- Created: 2012-11-09T18:57:28.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-08-28T20:31:31.000Z (almost 3 years ago)
- Last Synced: 2025-02-25T04:05:24.766Z (over 1 year ago)
- Language: Ruby
- Size: 66.4 KB
- Stars: 1
- Watchers: 23
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this 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](http://graphite.wikidot.com/).
[Original code](https://gist.github.com/1678399) taken from a Gist by [joakimk](https://github.com/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](https://code.launchpad.net/~lucio.torre/graphite/add-events/+merge/69142) ###
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.
- Intended subjects: howtos, high-level documentation & guides, etc.
- Intended audience: TED Tech staff.
- Vertical: Operations
- Related Links:
- https://github.com/tedconf/graphite_client