# Command Line ARGS for POSTGRE SQL Instances

**URL:** <https://community.dynatrace.com/t/command-line-args-for-postgre-sql-instances/46502>\
**Category:** Open Q&A\
**Tags:** processes\
**Created:** [July 8, 2024, 11:49am UTC](https://community.dynatrace.com/t/command-line-args-for-postgre-sql-instances/46502 "2024-07-08T11:49:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicemukesh](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nicemukesh](https://community.dynatrace.com/u/nicemukesh)\
**Post date:** [July 8, 2024, 11:49am UTC](https://community.dynatrace.com/t/command-line-args-for-postgre-sql-instances/46502/1 "2024-07-08T11:49:47Z")

</div>

Hi Team,

Need your help here..

We don’t see command line args under properties and tags for POSTGRE Instances. Requirement is to create a separate process group using command line args. We would like to understand how to enable&nbsp;command line args for POSTGRE&nbsp;Instances.

Mukesh

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [July 8, 2024, 2:45pm UTC](https://community.dynatrace.com/t/command-line-args-for-postgre-sql-instances/46502/2 "2024-07-08T14:45:42Z")

</div>

Maybe you can use

> **[Process group detection](https://docs.dynatrace.com/docs/observe/infrastructure-observability/process-groups/configuration/pg-detection)**
>
> Ways to customize process-group detection

- _If none of the above process group detection options works, you can use the environment variable&nbsp; **DT\_CLUSTER\_ID** &nbsp;to group all processes that have the same value for this variable. All processes found in a monitoring environment that share the same cluster ID are treated as members of the same process group, and are separated only by the hosts they run on (for example, clusters of Apache web servers that belong together and host the same site). Make sure you set the&nbsp; **DT\_CLUSTER\_ID** &nbsp;variable only on a process-by-process basis, not system wide! If you set this variable system-wide, all processes may be grouped into a single process group for monitoring. This is undesirable and unsupported._
- _To identify nodes within a process cluster that run on the same host, use the&nbsp; **DT\_NODE\_ID** &nbsp;environment variable. This tells Dynatrace which processes should be taken as separate process group instances._

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [July 8, 2024, 3:51pm UTC](https://community.dynatrace.com/t/command-line-args-for-postgre-sql-instances/46502/3 "2024-07-08T15:51:35Z")

</div>

[@PacoPorro](https://community.dynatrace.com/user/40713)&nbsp;DT\_CLUSTER\_ID and DT\_NODE\_ID are for deep monitored processes with code module injected. Postgresql is not one of them. For this, [@nicemukesh](https://community.dynatrace.com/user/70937)&nbsp;needs [declarative process grouping](https://docs.dynatrace.com/docs/shortlink/process-groups#declare)&nbsp;instead.

---

<div class="post-metadata">

**Author:** ![nicemukesh](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nicemukesh](https://community.dynatrace.com/u/nicemukesh)\
**Post date:** [July 8, 2024, 5:29pm UTC](https://community.dynatrace.com/t/command-line-args-for-postgre-sql-instances/46502/4 "2024-07-08T17:29:40Z")

</div>

Thanks for your response…

---

<div class="post-metadata">

**Author:** ![nicemukesh](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nicemukesh](https://community.dynatrace.com/u/nicemukesh)\
**Post date:** [July 8, 2024, 5:52pm UTC](https://community.dynatrace.com/t/command-line-args-for-postgre-sql-instances/46502/5 "2024-07-08T17:52:42Z")

</div>

[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;Dynatrace creates multiple process instances with same name **Postgresql** &nbsp;. Actually,&nbsp;we want to distinguish process instances using command line arg of process and it is not being captured by Dynatrace under Properties and tags.

**command line arg**

D /u01/app/postgres/postgres1/pg15/data/pgbase

D /u01/app/postgres/postgres2/pg15/data/pgbase

Can you please let me know why it is missing and how it can be captured in&nbsp; by Dynatrace

Mukesh
