When attempting to follow section 3.4, I am unable to get the RUM agent to work properly, step 11 "You should see petclinic-react" appear in services, but it never appears.
I see the following errors in the petclinic-client container
GET /api/error 404 34.263 ms - 123
Sending error to Elastic APM { id: '14c1dc243e7810bf481592a973072460' }
APM Server transport error (403): Unexpected APM Server response
Error: unauthorized: anonymous access not permitted for agent "nodejs"
APM Server transport error (403): Unexpected APM Server response
Error: unauthorized: anonymous access not permitted for agent "nodejs"
APM Server transport error (403): Unexpected APM Server response
Error: unauthorized: anonymous access not permitted for agent "nodejs"
APM Server transport error (403): Unexpected APM Server response
Error: unauthorized: anonymous access not permitted for agent "nodejs"
APM Server transport error (403): Unexpected APM Server response
Error: unauthorized: anonymous access not permitted for agent "nodejs"
APM Server transport error (403): Unexpected APM Server response
Error: unauthorized: anonymous access not permitted for agent "nodejs"
APM Server transport error (403): Unexpected APM Server response
Error: unauthorized: anonymous access not permitted for agent "nodejs"
APM Server transport error (403): Unexpected APM Server response
Error: unauthorized: anonymous access not permitted for agent "nodejs"
APM Server transport error (403): Unexpected APM Server response
Error: unauthorized: anonymous access not permitted for agent "nodejs"
APM Server transport error (403): Unexpected APM Server response
Error: unauthorized: anonymous access not permitted for agent "nodejs"
APM Server transport error (403): Unexpected APM Server response
Error: unauthorized: anonymous access not permitted for agent "nodejs"
APM Server transport error (403): Unexpected APM Server response
Error: unauthorized: anonymous access not permitted for agent "nodejs"
So looking at fleet server APM Integration i notice the "nodejs" agent is not in the authorized anonymous access, so i add it
you actually have two different agents based on JavaScript: one is the node agent for the backend and another is the RUM agent for the frontend. You are not required to change the settings in the APM integration, besides setting the secret token.
Can you please share the content of your config.js file for the petclinic-client container? Perhaps you have a misconfiguration over there.
I reproduced your settings on a fresh environment and it looks like your problem is including nodejs to Allowed agents and Allowed services in the APM integration. See in the screenshot below how the Throughput column shows petclinic-react went down when I configured these settings, but got back again when I removed them:
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.