New Relic Real User monitoring in JIRA

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?


3 answers

1 accepted

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

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

According to New Relic Support this is not supported.

0 vote

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

Yes - this is enabled

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

77 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you