Compares New Relic controller_summary.csv to the routes defined in a Rails app
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
newrelic_route_check.gemspec

README.md

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