23 Feb 2022 08:35 AM - last edited on 24 Feb 2022 09:38 AM by MaciejNeumann
Hi,
How can we do the renaming of the instances for nginx process in dynatrace?
we referenced the below link and tried to add environment variable but no luck.
We want to set the process group name as "nginx_web" and process instance name as "nginx_<serverip>".
What is the best solution to achieve this?
Solved! Go to Solution.
23 Feb 2022 07:23 PM
There's no easy way to get what you want using the process information available for Nginx.
You can create an "Advanced detection rule" for nginx and use the "Dynatrace custom node ID" for the "Process Instance Extraction". Then set the DT_NODE_ID environment variable at Nginx startup with to IP address.
23 Feb 2022 07:37 PM
Also, uncheck the ignore numbers option. Otherwise your process instances will have (*.*.*.*) at the end. 😉