Renaming the instances for nginx

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.

https://community.dynatrace.com/t5/Dynatrace-Open-Q-A/Process-group-detection-rules-extracting-the-identifier/m-p/124624

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?

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.

Also, uncheck the ignore numbers option.  Otherwise your process instances will have (*.*.*.*) at the end. :wink: