# Migrating process-group detection rules

**URL:** <https://community.dynatrace.com/t/migrating-process-group-detection-rules/38385>\
**Category:** Upgrade To Saas\
**Tags:** upgrade-to-saas\
**Created:** [February 10, 2023, 7:58am UTC](https://community.dynatrace.com/t/migrating-process-group-detection-rules/38385 "2023-02-10T07:58:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaciejNeumann](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MaciejNeumann](https://community.dynatrace.com/u/MaciejNeumann)\
**Post date:** [February 10, 2023, 7:58am UTC](https://community.dynatrace.com/t/migrating-process-group-detection-rules/38385/1 "2023-02-10T07:58:18Z")

</div>

What’s the best practice for migrating process-group detection rules?

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [February 10, 2023, 1:59pm UTC](https://community.dynatrace.com/t/migrating-process-group-detection-rules/38385/2 "2023-02-10T13:59:31Z")

</div>

_Dynatrace detects which processes are part of the same&nbsp;[process groups](https://www.dynatrace.com/support/help/how-to-use-dynatrace/process-groups)&nbsp;using a default set of detection rules.&nbsp;Simple process-group detection rules enable you to adapt the default process-group detection logic for deep-monitored processes via&nbsp;[Java system properties](https://www.dynatrace.com/support/help/how-to-use-dynatrace/process-groups/configuration/pg-detection#java)&nbsp;or&nbsp;[environment variables](https://www.dynatrace.com/support/help/how-to-use-dynatrace/process-groups/configuration/pg-detection#env)._

**We recommend utilizing Configuration-as-code to migrate process-group detection rules.**

Evolved from the Monitoring as Code CLI (aka Monaco), we provide Observability and Security as Code to fully automate the configuration of the Dynatrace platform at any scale - from automating the configuration of all your Dynatrace environments to meeting specific demands for individual ones. Read more here:&nbsp;[Configuration as Code overview — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/configuration-as-code)

**How to?**

Using Configuration-as-code, you can either download and deploy all configurations or focus on process-group detection rules configuration. In the simplest scenario it could look like that:

1. Download your process-group detection rules:

| `monaco download [manifest/direct] [args] --specific-api builtin:process-group.simple-detection-rule` |
| --- |

2.&nbsp;Validate configuration files and skip deployment. It will check whether your Dynatrace configuration files are valid JSON and whether your tool configuration yaml files can be parsed and used:

| `monaco deploy --dry-run` |
| --- |

3. Deploy configurations to the environment(s) defined in a given deployment manifest file.:

| `monaco deploy` |
| --- |
