New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphite reactor - Fixes #8 #27
Conversation
Graphite has 3 individual components
A simple way to send metrics (TCP or UDP): echo "<metric path> <metric value> <metric timestamp>" | nc $SERVER $PORT
echo "myserver.load.1m 4 `date +%s`" | nc 127.0.0.1 2003
echo "myserver.load.5m 4 `date +%s`" | nc 127.0.0.1 2003
echo "myserver.load.15m 4 `date +%s`" | nc 127.0.0.1 2003 metric path: a metric path that be renderer as a tree .
└── myserver
└── load
└── 1m
└── 5m
└── 15m metric value: an integer or a float Graphite (web) are some very nice features:
My reactor is to send metric based on data event to Graphite.
For example with the following event and prefix = "production." { host: 'app.server.com',
service: 'app.server2/health/heartbeat',
state: 'up',
time: 1360523052932,
description: 'No description',
tags: [],
metric: 1,
ttl: 3000 } metric name will be "production.app_server_com.app_server.health.heartbeat.up" |
@obazoud Why the string replacement in metric names? |
@indexzero I replace '.' by '_' to have a better layout in, Graphite. |
@obazoud do you mind posting your godot server on a gist, I need to implement a simple godot - graphite bridge and don't want to reinvent the wheel. |
Cherry-picked. Thanks! |
@mwawrusch You have an example https://github.com/nodejitsu/godot/blob/master/lib/godot/reactor/graphite.js#L8 You can find a lot of stuff (still in progress) about gobot at https://github.com/organizations/godot-plugins |
Awesome, thank you. On Sat, Mar 23, 2013 at 1:15 PM, Olivier Bazoud notifications@github.comwrote:
Martin Wawrusch modeista.com - Connect With Style I blog at http://martinatsunset.com : O API Marketplace, Where Art Thou |
No description provided.