Compares New Relic controller_summary.csv to the routes defined in a Rails app
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
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:
- Type: "Web".
- 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.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request