# Renaming the instances for nginx

**URL:** <https://community.dynatrace.com/t/renaming-the-instances-for-nginx/34242>\
**Category:** Open Q&A\
**Tags:** nginx\
**Created:** [February 23, 2022, 8:35am UTC](https://community.dynatrace.com/t/renaming-the-instances-for-nginx/34242 "2022-02-23T08:35:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saumil](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@saumil](https://community.dynatrace.com/u/saumil)\
**Post date:** [February 23, 2022, 8:35am UTC](https://community.dynatrace.com/t/renaming-the-instances-for-nginx/34242/1 "2022-02-23T08:35:38Z")

</div>

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](https://community.dynatrace.com/post/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?

---

<div class="post-metadata">

**Author:** ![mgome](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mgome](https://community.dynatrace.com/u/mgome)\
**Post date:** [February 23, 2022, 7:23pm UTC](https://community.dynatrace.com/t/renaming-the-instances-for-nginx/34242/2 "2022-02-23T19:23:56Z")

</div>

There’s no easy way to get what you want using the process information available for Nginx.

You can create an &nbsp;“Advanced detection rule” for nginx and use the “Dynatrace custom node ID” for the “Process Instance Extraction”. &nbsp; Then&nbsp;set the&nbsp;DT\_NODE\_ID environment variable at Nginx startup with to IP address.

---

<div class="post-metadata">

**Author:** ![mgome](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mgome](https://community.dynatrace.com/u/mgome)\
**Post date:** [February 23, 2022, 7:37pm UTC](https://community.dynatrace.com/t/renaming-the-instances-for-nginx/34242/3 "2022-02-23T19:37:14Z")

</div>

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