Dashing-Rails widget that display Newrelic metrics.
MIT License
Dashing-Rails widget that display Newrelic metrics.
Add this line to your Dashing-Rails application's Gemfile:
gem 'dashing-newrelic'
And then execute:
$ bundle
Follow the following steps in order to make it work on your dashing-rails project:
Add the following line to your app/assets/javascripts/dashing/widgets/index.js
file:
//= require newrelic
Add the following line to your app/assets/stylesheets/dashing/widgets/index.css
file:
*= require newrelic
Add the following html to your dashboard:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="new_relic_app_id_metric_name" data-view="Number" data-title="WidgetTitle"></div>
</li>
# or with https://github.com/gottfrois/dashing-hotness gem
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="new_relic_app_id_metric_name" data-view="Hotness" data-title="WidgetTitle" data-cool="0" data-warm="100"></div>
</li>
Run
rails g dashing:newrelic:install
Edit config/initializers/dashing-newrelic.rb
with your semaphore crendentials and project name as follow:
Dashing::Newrelic.configure do |config|
config.api_key = 'your_new_relic_api_key'
config.application_ids = ['app_id']
end
Note: the paths to index files may have changed depending on your Dashing-Rails configuration.
data-id
: Like all widgets, you must include an identifier so that your jobs can update the value.The data-id
must include the new_relic_app_id
+ the_metric_name
you are interrested in. For example:
data-id="2299_rpm_memory"
Here is the list of available metrics:
rpm_apdex
rpm_error_rate
rpm_throughput
rpm_errors
rpm_response_time
rpm_db
rpm_cpu
rpm_memory
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Full credits for this widget should go to Tair Assimov.
dashing-semaphore is released under the MIT License. Developed by Tair Assimov. Adapted by gottfrois.