The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, I need to enable website monitoring of the jira v8.5.5. in Instana

pavol_cvincek01
Contributor
January 13, 2021

Following this guide I tried to setup monitoring of Jira in Instana but no data are received:
https://www.instana.com/docs/website_monitoring/#installation

I have troubles to upload below script to Jira HTML code as Instana requires:
<script>
  (function(s,t,a,n){s[t]||(s[t]=a,n=s[a]=function(){n.q.push(arguments)},
  n.q=[],n.v=2,n.l=1*new Date)})(window,"InstanaEumObject","ineum");

  ineum('reportingUrl''https://eum-blue-saas.instana.io');
  ineum('key''XXXXXXXXXXXXXX');
  ineum('trackSessions');
</script>
<script defer crossorigin="anonymous" src="https://eum.instana.io/eum.min.js"></script>

 

Can anybody advice how I can update e.g. Jira login page to have that code in it?

Thanks in advance

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Nic Brough -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 Champions.
January 13, 2021

What are you trying with your "upload"?

pavol_cvincek01
Contributor
January 13, 2021


This is the guide directly from Instana:
Tracking_script_Instana_jira.pngI Tried to update login.jsp with above script but so success. Nothing is visible in Instana. Even when I try to see source code in browser I can't see my updates there.

login.jsp_modifications.png

Elsewhere I found that not reflected changes might be cause by caching and there was recommended to comment out below login.jsp lines in web.xml to make changes visible. I restarted Jira few times but still no success.

servlet_modifications.png

Note: There is one more file called login.jsp in folder decorators and I didn't touch that one so far.

Nic Brough -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 Champions.
January 13, 2021

Jamming javascript chunks into jsp pages generally does not work, you will need to look at all the code in Jira that generates the pages and work out where to inject the code at a higher level than individual pages, as it needs to be run as part of the whole, not a subset page.

I'm not sure where Jira gets all of its javascript from, when it serves the main page up.   I've never looked beyond finding the odd error that's usually been on a jsp or a velocity template.  Some of it might be being generated by the java (although I doubt it, it is a possibility)