A Dashing widget for displaying a graph of metrics data from Librato
Add it to dashing's gemfile:
gem 'httparty'
and run bundle install.
To use this widget, you'll first need to set up an API token for your Librato account and add it to your job script
- Go to https://metrics.librato.com/account#api_tokens
- Click the '+' icon to create a new API token.
- Enter a name for the token (e.g. 'Dashing Dashboard Widget')
- Click the 'view only' option
- Click 'Create'
- Copy the
librato.rbfile in to your dashingjobs/folder. (or usedashing install 8324021to install directly from this gist) - Update the
api_user,api_tokenandmetric_namevariables injobs/librato.rb
api_user = '[YOUR LIBRATO ACCOUNT EMAIL]'
api_token = '[YOUR LIBRATO API TOKEN]'
...
metric_name = '[YOUR LIBRATO METRIC NAME]'- Add the widget HTML to your dashboard
NOTE: The data-id attribute should based on the name of your metric (e.g. 'librato.my-metric-name')
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="librato.my-librato-metric" data-view="Graph" data-title="My Metric" data-moreinfo="powered by librato"></div>
</li>