# Is automatic service merging possible?

**URL:** <https://community.dynatrace.com/t/is-automatic-service-merging-possible/21348>\
**Category:** Open Q&A\
**Tags:** services-classic, sso\
**Created:** [January 29, 2021, 3:34pm UTC](https://community.dynatrace.com/t/is-automatic-service-merging-possible/21348 "2021-01-29T15:34:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [January 29, 2021, 3:34pm UTC](https://community.dynatrace.com/t/is-automatic-service-merging-possible/21348/1 "2021-01-29T15:34:12Z")

</div>

Hello,

In an auto scaling environment, when starting an extra service instance is it possible to auto merge this new instance in the already existing service?

KR Henk

---

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [January 29, 2021, 3:40pm UTC](https://community.dynatrace.com/t/is-automatic-service-merging-possible/21348/2 "2021-01-29T15:40:11Z")

</div>

If the new process is part of the same PG, it should show up as a PGI. The service should be added automatically to the existing service

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [January 29, 2021, 3:50pm UTC](https://community.dynatrace.com/t/is-automatic-service-merging-possible/21348/3 "2021-01-29T15:50:30Z")

</div>

Hi Dante,

Thanks for you reply, do you also know when a services get in the “can be merged” list and when this done automatic?

KR Henk

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [January 29, 2021, 3:51pm UTC](https://community.dynatrace.com/t/is-automatic-service-merging-possible/21348/4 "2021-01-29T15:51:21Z")

</div>

Yeah ideally this happens automatically, if it doesn’t it means something about it that is used for mapping is different. If it’s a different hostgroup there’s no way to merge them without changing the hostgroups.

> **[Organize your environment using host groups](https://docs.dynatrace.com/docs/observe/infrastructure-observability/hosts/configuration/organize-your-environment-using-host-groups)**
>
> Find out how Dynatrace enables you to organize your hosts, processes, and services using host groups.

If it’s a separate Process Group look at customizing process group detection so that they are in the same group (PGs serve as a boundary for services). There’s also some toggles in the process group detection settings you may look at to see if they apply.

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

Lastly, if things are in the same process groups and are still detected as different services it could mean you need to look at custom service detection rules.

> **[New Dynatrace API enhances automatic service detection](https://www.dynatrace.com/news/blog/new-dynatrace-api-enhances-automatic-service-detection/)**
>
> The service detection API enables you to supplement or correct available information and improve out-of-the-box service detection.

> **[Service detection API](https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/service-api/detection-rules)**
>
> Learn what the Dynatrace service detection rules config API offers.

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [February 2, 2021, 8:10am UTC](https://community.dynatrace.com/t/is-automatic-service-merging-possible/21348/5 "2021-02-02T08:10:30Z")

</div>

Hello Fournier,

Below a lot of answers how things work,

You get mergeable services when PGI’s are part of one PG. only the PGI “names” differ, so you have to assist Dynatrace by creating a group-name and add them,

KR Henk
