##Yet another gist to provide Graphite support for Dashing Pull data from Graphite and present in Dashing. Support both graph and number widget.
Quick install:
dashing install efffa657c31e244131e3
Set the graphite name and names of metrics in jobs/graphite.rb
# Set the graphite url
GRAPHITE_URL = 'http://127.0.0.1:8080'
#GRAPHITE_URL = 'https://127.0.0.1:8443'
# Job mappings. Define a name and set the metrics name from graphite
job_mapping = {
'host1-load-1min' => '*.*.host1.load.onemin',
'host2-load-1min' => '*.*.host1.load.onemin'
}
Configure your dashboard to use your data. Example dashboards/sample.erb:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="host1-load-1min" data-view="Graph" data-title="Host1 Load 1min" data-moreinfo="Last 4h"></div>
</li>
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="host2-load-1min" data-view="Meter" data-title="Host2 Load 1min" data-min="0" data-max="100" data-moreinfo="Last 4h"></div>
</li>
As always, fork and tweak to suit your needs
Good updates. You should probably update the readme to reflect your changes GRAPHITE_HOST and
GRAPHITE_PORT are gone it seems. Also it's be nice if you could put an sample widget image in there.