Course: Elastic Observability Engineer
Version: 7.9
Question:
I have not been successful with getting petclinic-react to appear in the list of Services in APM.
I can get the other three services to appear fine in APM and provide me with data.
I have redone all the parts of Lab 5 to make sure I haven't missed anything, as well as disconnecting from Strigo for an hour and reconnecting just incase it was an issue with the AWS instance I was on. However no matter what I do, I still don't get petclinic-react to appear even though apm-server does say RUM endpoints are enabled and restarting node.js on petclinic-client reports no errors after changing the apm_server_js location.
Here's a copy of my config.js from the petclinic-client server:
did you try using the Dynamic DNS in the apm_server_js setting? When your machine restarts you get a different Public DNS and maybe that's the reason why you're not getting any data.
My apologises for taking so long to get back to you.
I have the apm server host set to 0.0.0.0:8200. I have confirmed that apm-server is running when I do a ps -aux check
I have had a co-worker who has completed the training and done the exam to double check my config settings on both the apm-server and petclinic-client and found no issues there.
I don't know much about Developer Tools (I'm using Chrome). How do I use that to find out why the petclinic website isn't communicating with the apm server?
in Chrome you can click on the three dots next to the profile picture, select More Tools and then access Developer Tools. This will open a console in your Chrome browser. After that you can access PetClinic and see if any errors appear in the console. That will make it easier to understand what might be the issue.
I have made sure each time on the apm-server before I start the actual service that apm-server.yml has got RUM enabled in it. I have attached two screenshots of the setting in the yaml file as well as the apm server startup showing RUM is running.
are you accessing PetClinic using HTTP or HTTPS? Please make sure you use HTTP, otherwise you might have problems. Please also check if you don't have any white spaces in your config.js.
If you still have issues, please send me a DM with your Public DNS, so I can take a look.
I found out what the issue was - the Adblocker I was using in all my browsers was breaking the communication between the the PetClinic website and the APM server
This Stack Overflow link has the answer:
Disabling the Ad Blocker for that page has allowed petclinic-react to work. Running the site in an incognito/private session browser window also works.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.