##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 5088efcc94de2fecad5e
Set the graphite host/port and names of metrics in jobs/graphite.rb
# Set the graphite host and port (ip or hostname)
GRAPHITE_HOST = '127.0.0.1'
GRAPHITE_PORT = '8080'
# 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>
</ul>
<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>
</ul>
As always, fork and tweak to suit your needs
No need to merge. If your works I'm ok to sunset this and leave you to maintain the graphite widget. I'm running my OpenTSDB widget and made the graphite one just for recreational purposes.