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

3 votes
Accepted answer

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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,311 views 12 19
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