11 Jan 2024 10:04 PM - last edited on 24 Jan 2024 08:47 AM by Michal_Gebacki
Hi
I have a question, i have two Dynatrace tenant, one for production and other for pre-production, is possible that one server has installed two oneagent, one that aims to production tenant and the other that aims to pre-production tenant.
Solved! Go to Solution.
12 Jan 2024 05:37 AM - edited 12 Jan 2024 05:41 AM
Hello.
In general: it is not possible to put two agents on the same server.
Perhaps only if you have for example a docker host and two containers. Adding an agent to the image for different environments and runing on same docker host - you will achive situation that you have two different containers/process and monitoring data in two different environments.
Regards,
Alex Romanenkov
12 Jan 2024 09:30 AM
So you are saying that a host can be both in Production, and Pre-Productions phase?
More than one OneAgent is not supported. (Though technically, if you reconfigure the port assignments, you might get somewhere).
I recommend you to consider to connect your environments and use the cross-environment facility:
12 Jan 2024 09:39 AM - edited 12 Jan 2024 09:53 AM
Actually, both @fstekelenburg and @Romanenkov_Al3x are valid, however depending on your particular use case I'd also recommend thinking about using PaaS OneAgent versions. So if you are deploying to a host (e.g. not Kubernetes or other application platforms), you can combine full OneAgent from one environment and a PaaS version from another one. Then you will have the full OneAgent reporting to one environment and just a process / processes with manually injected PaaS OneAgent to another environment.
12 Jan 2024 09:48 AM - edited 12 Jan 2024 09:49 AM
The same applies to the use of Agentless RUM, when you have different web sites/services on a host that are in different phases, and explicitly need to be split, right @Julius_Loman? Assuming you're not meaning the same 😉
12 Jan 2024 09:50 AM
No, I mean just OneAgents. Agentless RUM is not related to this at all.
12 Jan 2024 09:54 AM
Right, but could be the goal, which I forgot to ask. So @DAVID_MTZ what is it exactly that you are trying to achieve?