No commit activity in last 3 years
No release in over 3 years
Dashing-Rails widget that display newrelic metrics
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Dashing::Newrelic

Dashing-Rails widget that display Newrelic metrics.

Installation

Add this line to your Dashing-Rails application's Gemfile:

gem 'dashing-newrelic'

And then execute:

$ bundle

Getting Started

Follow the following steps in order to make it work on your dashing-rails project:

  1. Add the following line to your app/assets/javascripts/dashing/widgets/index.js file:

     //= require newrelic
    
  2. Add the following line to your app/assets/stylesheets/dashing/widgets/index.css file:

     *= require newrelic
    
  3. 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>
    
  4. Run

     rails g dashing:newrelic:install
    
  5. 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.

Fields

Required

  • 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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author

Full credits for this widget should go to Tair Assimov.

License

dashing-semaphore is released under the MIT License. Developed by Tair Assimov. Adapted by gottfrois.

Bitdeli Badge