Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1.2 KB

README.md

File metadata and controls

45 lines (27 loc) · 1.2 KB

NewrelicRouteCheck

Compares New Relic controller_summary.csv to the routes defined in a Rails app

Installation

Add this line to your application's Gemfile, likely in the development group as it is not needed in production:

gem 'newrelic_route_check'

#--- or

group :development do
  gem 'newrelic_route_check'
end

And then execute:

$ bundle

Or install it yourself as:

$ gem install newrelic_route_check

Usage

This gem requires the controller_summary.csv file from New Relic. To download, go to: Monitoring tab > Transactions.

Make sure to select these two options:

  1. Type: "Web".
  2. Date range: Preferably with the 7 day history to have the best coverage.

Click on link "Show all transactions table…". Click on "Export as CSV". Save the file to ./tmp/controller_summary.csv.

Run: bundle exec rake newrelic:compare_with_routes, which should give output of routes that are defined in your app but not receiving any traffic.

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