05 Feb 2024 06:16 PM
Dynatrace is detecting multiple similar processes in host and putting them under the same process group and instance.
I used env variable "DT_NODE_ID" at host level to separate these processes, but I have to give these environment variables to each process at every reboot of linux machine.
Is there any alternate approach to this problem? The metadata like EXE path, command line args is same for these processes.
Solved! Go to Solution.
05 Feb 2024 07:52 PM
you can try something like add the set env variable to the bash command which running the application like
DT_NODE_ID='123456' /bin/bash -c ./filename.sh
09 Feb 2024 04:35 AM
So, I will have to mention this env variable everytime before starting the process right?
13 Feb 2024 09:27 PM
exactly, you can put this command within another .sh file and execute your process through it instead of running it directly
09 Feb 2024 06:40 AM
Hello,
You can add a custom process rule to monitor using the EXE path like the below SC. this will separate the processes.
Thanks,
Islam
12 Feb 2024 05:21 AM
Hi,
Both the processes that I want to separate have the same EXE path. The only difference being that they run on different ports. Is there a way to separate them?
12 Feb 2024 09:11 AM
I'm afraid the port is not an option.
Best option is using an ENV variable.
https://docs.dynatrace.com/docs/shortlink/process-groups#env