New Relic Real User monitoring in JIRA

Joel Brass October 14, 2013

I have installed New Relic in my JIRA instance. I have it reporting Server side data. I am trying to enable the Browser side tracking. I have installed the newrelic-api.jar into the JIRA lib folder.

https://docs.newrelic.com/docs/java/real-user-monitoring-in-java

According to New Relic documentation - the Javascript for Real User Monitoring should automatically get inserted into the pages during Jasper JSP compilation.

This is not happening for me. Is this possible to set up automatically? If this is not possible where would it be implemented manually?


4 answers

1 accepted

3 votes
Answer accepted
saint January 26, 2014

Here is a dirty hack howto add NewRelic Real User Monitoring to JIRA.

  1. Download NewRelic agent lib: newrelic_agent3.3.2.zip
  2. Unzip it to jira/install dir
  3. add line(change <FULL_PATH> to real path) to file jira/install/bin/catalina.sh
    export JAVA_OPTS="$JAVA_OPTS -javaagent:&lt;FULL_PATH&gt;/jira/install/newrelic/newrelic.jar"

  4. Change NewRelic configuration file newrelic.yml:
    1. Insert your license_key:
      license_key: &lt;key&gt;
    2. Change app name:
      app_name: &lt;app_name&gt;
    3. Disable Real User Monitoring auto instrumentation:
      browser_monitoring:
        auto_instrument: false
  5. Copy newrelic/newrelic-api.jar to jira/install/lib
  6. Restart JIRA
  7. Add NewRelic to JIRA templates:
    1. go to jira/install/atlassian-jira/includes/decorators/aui-layout
    2. In head-common.jsp after meta tags add line:
      &lt;%= com.newrelic.api.agent.NewRelic.getBrowserTimingHeader() %&gt;
    3. In footer.jsp add line
      &lt;%= com.newrelic.api.agent.NewRelic.getBrowserTimingFooter() %&gt;

  8. Done
Sorin Sbarnea (Citrix)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 4, 2014

Does this still works with JIRA 6.3+ ? Are you using it on production? Any risks?

Rodolfo So January 17, 2021

Hi Saint, 

Can you provide screenshot that this settings will works? 

 

Appreciate your help.Thanks

1 vote
Joel Brass October 18, 2013

According to New Relic Support this is not supported.

0 votes
Wei Wang July 27, 2020

Hi, does it work for Jira 7?

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 14, 2013

Did you enable it using Enable real user monitoring? checkbox option?

Joel Brass October 14, 2013

Yes - this is enabled

Suggest an answer

Log in or Sign up to answer