[RUBY] Introducing New Relic to Rails apps on Heroku

Introduction method

Add add-on

--Provision New Relic add-on from Heroku's dashboard -- $ heroku addons: create newrelic: wayne when done from the command line

At this point, Create a New Relic account and Set various environment variables are done automatically.

Move to the screen where the setting method is described

--Click New Relic from the add-on list screen to move to the New Relic site -- $ heroku addons: open newrelic when done from the command line --Click Get Started new_relic_top.png --Click Ruby  2020-09-01 20.38.40.png

Connection with the app

Set according to the displayed screen ruby_new_relic.png

  1. Enter the app name
  2. Install the newrelic_rpm gem
  3. Download the configuration file and place it directly under the config directory (the license key for NEW_RELIC is written directly, so it is better to put it in an environment variable)
  4. Deploy to Heroku (+ access the deployed site to create traffic)
  5. Get data

You should be able to go back to the Heroku add-ons list screen and click on the New Relic add-ons to go to the performance monitoring dashboard-like screen.

Other

--The old document says "Set the app name in the environment variable", but it's OK (because it is written in the configuration file) --I accidentally wrote a gem in the development group and it got stuck for over an hour. .. .. --The New Relic account and email address are set to the email addresses registered on Heroku. Since the password is unknown, I selected Reset Password from the login screen and reset it.

reference

Recommended Posts

Introducing New Relic to Rails apps on Heroku
Introducing New Relic to Java apps running on Heroku
Deploy Rails on Docker to heroku
Deploy to Heroku [Ruby on Rails] Beginner
Introducing CircleCI to Rails
Introducing Bootstrap to Rails 5
Introducing Bootstrap to Rails !!
[Rails MySQL] How to reset DB on heroku
Ruby on Rails ✕ Docker ✕ MySQL Introducing Docker and docker-compose to apps under development
[Ruby On Rails] How to reset DB in Heroku
How to deploy on heroku
How to check the database of apps deployed on Heroku
How to deploy jQuery on Rails
Introducing full calendar to Rails application
How to use Ruby on Rails
How to deploy Bootstrap on Rails
[Rails] How to add new pages
Rails on Tiles (how to write)
Introducing React to Rails with react-rails
Deploy your Rails app on Heroku
[Rails / Heroku / MySQL] How to reset the DB of Rails application on Heroku
Redirect to your own domain with rack-rewrite on Heroku x Rails
Change from SQLite3 to PostgreSQL in a new Ruby on Rails project
How to redo a deployment on Heroku
Tutorial 1 for building apps with Rails (First steps to Yay! You're on Rails!)
Introducing Basic Authentication on Heroku [Spring Framework]
[Ruby on Rails] How to use CarrierWave
Migrate existing Rails 6 apps to Docker environment
Deploy to heroku with Docker (Rails 6, MySQL)
Knowledge required to bring Rails apps to AWS
[Rails 6] Introducing Google Maps to your portfolio
Preparing to introduce jQuery to Ruby on Rails
Ruby on Rails application new creation command
[Ruby on Rails] How to use redirect_to
[Ruby on Rails] How to use kaminari
The process of introducing Vuetify to Rails
[Ruby on Rails] Button to return to top
Deploy to Ruby on Rails Elastic beanstalk (EB deploy)
[Ruby on Rails] How to display error messages
[Rails] rails new to create a database with PostgreSQL
How to add / remove Ruby on Rails columns
Introducing Rspec with Ruby on Rails x Docker
How to save images on Heroku to S3 on AWS
Rails new in Ruby on Rails ~ Memorandum until deployment 2
Ssh login to the app server on heroku
Introducing Rspec, a Ruby on Rails test framework
Note how to rollback Mysql deployed on Heroku
Rails new in Ruby on Rails ~ Memorandum until deployment 1
Error deploying rails5 + Mysql to heroku with Docker-compose
[Rails] Introducing pay.jp (from view customization to registration)
Recipe for deploying Rails apps on AWS EC2
[Ruby on Rails] How to install Bootstrap in Rails
[Ruby on Rails] How to use session method
How to post images on Heroku + CarrierWave + S3
Tailwind on Rails
[Rails] Introducing devise
[Ruby on rails + Mysql] Data migration procedure memo when switching from heroku to AWS
[Introduction] Try to create a Ruby on Rails application
How to make batch processing with Rails + Heroku configuration
Method summary to update multiple columns [Ruby on Rails]
[Ruby on Rails] How to write enum in Japanese