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 votes

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

Yes - this is enabled

Suggest an answer

Log in or Join to answer
Community showcase
Pedro Felgueiras
Asked 38m ago in Jira

Clone a Zephyr issue

When I try to clone a Zephyr issue only a popup showing the issue id and nothing more shows.  On the browser console I see:  RTE not registered Error: No jira/editor/registry at c...

9 views 0 0
View question

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot