# Divide Group Service by Host

**URL:** <https://community.dynatrace.com/t/divide-group-service-by-host/5616>\
**Category:** Open Q&A\
**Tags:** services-classic, hosts-classic\
**Created:** [September 5, 2016, 12:49pm UTC](https://community.dynatrace.com/t/divide-group-service-by-host/5616 "2016-09-05T12:49:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuel\_mandagli](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@manuel\_mandagli](https://community.dynatrace.com/u/manuel_mandagli)\
**Post date:** [September 5, 2016, 12:49pm UTC](https://community.dynatrace.com/t/divide-group-service-by-host/5616/1 "2016-09-05T12:49:46Z")

</div>

Hi,

i’m working on design Dynatrace environment after installing the agent on two different host group.

I have some problem with “monitored services”, where some services with the same name but different host group are merge together. I attach an example of wrong group.

 ![11919-example.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/42d6431cd106d125b5aa823d73f5bac30f9c9447.png)

I can’t create two different Environments because same metrics of different groups host must be shown together.

Is there any way to divide the services by host? Are there any other methods to obtain what I want?

---

<div class="post-metadata">

**Author:** ![michael\_kopp](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michael_kopp/32/13415_2.png) [@michael\_kopp](https://community.dynatrace.com/u/michael_kopp)\
**Post date:** [September 6, 2016, 6:13am UTC](https://community.dynatrace.com/t/divide-group-service-by-host/5616/2 "2016-09-06T06:13:56Z")

</div>

Hi [@Manuel M.](https://answers.dynatrace.com/users/1928/manuelmandaglio.html),

We are actually coming out with a feature to group hosts, soon. In the mean time the best way to achieve what you want is to name the jboss on the respective hosts differently. See [this article](https://help.dynatrace.com/monitor-cloud-virtualization-and-hosts/network-and-processes/can-i-customize-how-process-groups-are-detected/) on how to do this. You can either use a java system property or an environment variable. This will split the jboss into two separate process groups aka clusters which also results in a split of the service.

I hope this answers your question?

Best

Michael

---

<div class="post-metadata">

**Author:** ![manuel\_mandagli](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@manuel\_mandagli](https://community.dynatrace.com/u/manuel_mandagli)\
**Post date:** [September 6, 2016, 6:59am UTC](https://community.dynatrace.com/t/divide-group-service-by-host/5616/3 "2016-09-06T06:59:54Z")

</div>

thank you Michael, i wait the new release:)

I already try your explain method, but now that i know it’s the only way i drill down on it

---

<div class="post-metadata">

**Author:** ![manuel\_mandagli](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@manuel\_mandagli](https://community.dynatrace.com/u/manuel_mandagli)\
**Post date:** [September 6, 2016, 9:03am UTC](https://community.dynatrace.com/t/divide-group-service-by-host/5616/4 "2016-09-06T09:03:03Z")

</div>

Hi Michael,

I read the linked page and in my situation I can’t set the environment variable “ **DT\_CLUSTER\_ID** ” and there isn’t a unique system property that I can use. Can I use another environment variable for example “ **HOSTNAME** ”? how?

---

<div class="post-metadata">

**Author:** ![michael\_kopp](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michael_kopp/32/13415_2.png) [@michael\_kopp](https://community.dynatrace.com/u/michael_kopp)\
**Post date:** [September 6, 2016, 9:17am UTC](https://community.dynatrace.com/t/divide-group-service-by-host/5616/5 "2016-09-06T09:17:41Z")

</div>

Can you add a new system property to your jboss or is it not possible to modify the deployment?

Can I ask why you want to devide it by hostname? is it because the the jboss’ don’t form a cluster or because you want to be able to look at single instances of the cluster. If it is the later, then please look on the details page of the service, you can look at the single instances there.

---

<div class="post-metadata">

**Author:** ![manuel\_mandagli](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@manuel\_mandagli](https://community.dynatrace.com/u/manuel_mandagli)\
**Post date:** [September 6, 2016, 9:37am UTC](https://community.dynatrace.com/t/divide-group-service-by-host/5616/6 "2016-09-06T09:37:03Z")

</div>

no i can’t add a new system property.

i have two services with the same name for two different Customers. I need that this two services belongs to two different groups (one for Customers name).

My scope is to use that specific groups to create a tow different Customers Dashboard and divide metrics.

In addition i have to create another Global dashboard for all Customers, so i can’t divide client in different enviroments.

---

<div class="post-metadata">

**Author:** ![michael\_kopp](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michael_kopp/32/13415_2.png) [@michael\_kopp](https://community.dynatrace.com/u/michael_kopp)\
**Post date:** [September 6, 2016, 11:08am UTC](https://community.dynatrace.com/t/divide-group-service-by-host/5616/7 "2016-09-06T11:08:55Z")

</div>

[@Manuel M.](https://answers.dynatrace.com/users/1928/manuelmandaglio.html)

The only way to do that is to either add an environment variable to the process or to add a system property to the process or to use an upcoming host grouping feature.

Can you modify anything on the setup? like the Dynatrace configuration file?

---

<div class="post-metadata">

**Author:** ![manuel\_mandagli](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@manuel\_mandagli](https://community.dynatrace.com/u/manuel_mandagli)\
**Post date:** [September 6, 2016, 12:24pm UTC](https://community.dynatrace.com/t/divide-group-service-by-host/5616/8 "2016-09-06T12:24:18Z")

</div>

thanks Michael, we’ll speak about with our developper

---

<div class="post-metadata">

**Author:** ![alexandre\_iltia](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@alexandre\_iltia](https://community.dynatrace.com/u/alexandre_iltia)\
**Post date:** [June 28, 2017, 6:45am UTC](https://community.dynatrace.com/t/divide-group-service-by-host/5616/9 "2017-06-28T06:45:07Z")

</div>

Hi Michael, is this host grouping feature available? There is HOST\_GROUP parameter of the oneagent installation script, but it appears not supported …

---

<div class="post-metadata">

**Author:** ![abhimanyu\_bhatn](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@abhimanyu\_bhatn](https://community.dynatrace.com/u/abhimanyu_bhatn)\
**Post date:** [January 17, 2018, 4:59pm UTC](https://community.dynatrace.com/t/divide-group-service-by-host/5616/10 "2018-01-17T16:59:26Z")

</div>

Is there way i can set a host\_ group after agent installation on windows host [@ALEXANDRE I.](https://answers.dynatrace.com/users/4523/view.html) [@Michael K.](https://answers.dynatrace.com/users/11582/view.html)

---

<div class="post-metadata">

**Author:** ![Karolina\_Linda](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/karolina_linda/32/36089_2.png) [@Karolina\_Linda](https://community.dynatrace.com/u/Karolina_Linda)\
**Post date:** [January 18, 2019, 12:49pm UTC](https://community.dynatrace.com/t/divide-group-service-by-host/5616/11 "2019-01-18T12:49:52Z")

</div>

Hi Abhimanyu,

According to the docs:

"A host can be assigned to a host group only at the time of [OneAgent installation](https://www.dynatrace.com/support/help/deploy-dynatrace/). Use the `HOST_GROUP` parameter to assign a host to a group.

`/bin/sh Dynatrace-OneAgent-Linux-1.137.65.sh HOST_GROUP=MyHostGroup`

On Windows, you can also type the group name when [installing OneAgent](https://www.dynatrace.com/support/help/deploy-dynatrace/oneagent/windows/installation/install-oneagent-on-windows/)."
