New relic on Heroku, how to make it work?

I deployed Scala, play framework, an application on Heroku. And I added a new release addition to my application.

I followed the Java tutorial since Scala runs on a Java virtual machine.

$ heroku addons:add newrelic:standard
-----> Adding newrelic:standard to ... done, v7 (free)

Unziped newrelic for newrelic in application

$ git add newrelic
$ git commit -m 'add newrelic'
$ heroku config:add JAVA_OPTS='-Xmx384m -Xss512k -XX:+UseCompressedOops -javaagent:newrelic/newrelic.jar'
$ git push heroku master

Now to the problems. At first, when I turned to the add-on, I had to create a new account on a new relic with a new password, and I need my credentials? It's right? Should my assessment of Eroku be sufficient, I later think that she began to work. A strange process, so now I think I have two accounts. On the Herokus page, my account is standard hourly, and in new relics it is standard.

, . , ?

- , , , " ", WTF.

. - , , , ?

enter image description hereenter image description here

+5
4

New Relic heroku .

, , .

( , heroku logs), .

http://support.newrelic.com.

+3

, - heroku heroku logs. , , newrelic.config.log_level newrelic.debug. , , .

:

$ heroku config:set JAVA_OPTS="-Xmx384m -Xss512k -XX:+UseCompressedOops -Dfile.encoding=UTF-8 -javaagent:target/staged/newrelic-agent-2.20.0.jar -Dnewrelic.bootstrap_classpath=true -Dnewrelic.config.file=./conf/newrelic.yml newrelic.config.log_level=finer newrelic.debug=true"

, . .

, 2.1/ Scala Heroku: http://techblog.nezasa.com/2013/08/performance-monitoring-of-nezasa-with.html

+3

- , (, ), newrelic.

newrelic.yml , 'newrelic.jar'? newrelic heroku ( ). vars heroku;

NEW_RELIC_LICENSE_KEY="your license key"
NEW_RELIC_APP_NAME="your app name"

RACK_ENV var, , RACK_ENV=production

newrelic.yml, :

license_key: '<%= license_key %>' license_key: '<%= ENV["NEW_RELIC_LICENSE_KEY"] %>'

app_name: My Application app_name: '<%= ENV["NEW_RELIC_APP_NAME"] %>'

app_name: My Application (Development) app_name: '<%= ENV["NEW_RELIC_APP_NAME"] (Development) %>'

app_name: My Application (Staging) app_name: '<%= ENV["NEW_RELIC_APP_NAME"] (Staging) %>'

newrelic.yml .

, , heroku.

+1

New Relic Heroku, .

$ heroku addons:add newrelic:standard

, Rails *. , Relic ( , ).

, Ruby, - Heroku New Relic.

* update: I had the same problem when deploying another application, and I realized that to use the Heroku New Relic add-on you need to provide credit card information, but if you just link your application directly , you do not need to provide credit card information . However, you need to create an account.

0
source

All Articles