14 Mar 2019 12:00 AM
Hi,
We have a JBoss application server running on a host where OneAgent is deployed. We have mobile applications (Android and iOS) calling the JBoss server and I would like to implement an endpoint on the JBoss server which provides the Dynatrace environment id to the mobile application such that the agent running on the client can report to that environment. The question is, how can I obtain the Dynatrace environment from within our deployment (ear) on the JBoss server?
Solved! Go to Solution.
14 Mar 2019 07:25 AM
If you have SaaS installation, you are using your tenant url. If you have managed, first you need to setup cluster activegate (or set dynatrace server to be public). Than you will be able to configure public url to your tenant to send data.
Ebout enviornment ID, for managed when you go to your enviornment your url will looks like:
https://{your-domain}/e/{your-environment-id}/
Part between /e/ and / is your enviornment ID
Sebastian
10 Jun 2024 03:27 PM - edited 10 Jun 2024 03:29 PM
Hello, I noticed your reply, and I see that many people are happy with it. However, my question is: where do I find this "your-environment-id" ?
I intend to send data from the Fluentd agent to Dynatrace. Upon investigation, I found that the URL should resemble this: "endpoint: "https://<dynatrace-domain>/e/<environment-id>/api/v2/logs/ingest"
NOTE : I already have an ActiveGate that is well configured and connected
14 Mar 2019 08:07 AM
Directly from within an J2EE application, you cannot, since the application itself is unaware of the Oneagent instrumentation.
However, you can find your tenant ID in the ruxitagentproc.conf on the server. But if you need this for the configuration of the mobile app (Beacon), I think it does not use the tenant ID, but a different one.
14 Mar 2019 02:00 PM
Thank you for the answer. I think I'll just put the environment id in a configuration on the JBoss server manually.