<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PRO TIP - Step by Step guide to set (much the same as) Host Groups in Fargate in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/214711#M862</link>
    <description>&lt;P&gt;also, can they use the native AWS HostGroup tag too?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 12:12:25 GMT</pubDate>
    <dc:creator>Kenny_Gillette</dc:creator>
    <dc:date>2023-06-12T12:12:25Z</dc:date>
    <item>
      <title>PRO TIP - Step by Step guide to set (much the same as) Host Groups in Fargate</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/212531#M844</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;If you want to monitor AWS &lt;A href="https://docs.aws.amazon.com/AmazonECS/latest/userguide/what-is-fargate.html" target="_blank" rel="noopener"&gt;Fargate&lt;/A&gt; with Dynatrace and &lt;A href="https://www.dynatrace.com/support/help/shortlink/aws-fargate" target="_blank" rel="noopener"&gt;deploy OneAgent&lt;/A&gt; you have three options according to your scenario:&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/aws-fargate#autoinjection" target="_blank" rel="noopener"&gt;Automatic Injection&lt;/A&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/aws-fargate#buildtime" target="_blank" rel="noopener"&gt;Build-time Injection&lt;/A&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/aws-fargate#runtime" target="_blank" rel="noopener"&gt;Runtime Injection&lt;/A&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT size="4"&gt;As you may notice the parameter:&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="4"&gt;--set-host-group=my_host_group&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&amp;nbsp;is not supported in Fargate but for many of us this is a gruesome headache because we use hosts groups for many purposes like assigning membership to MZ's among others.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;But the following guide is a step by step solution to resolve this using a workaround.&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;No matter what option you selected to create the container please add an &lt;A href="https://docs.docker.com/engine/reference/builder/#environment-replacement" target="_blank" rel="noopener"&gt;Enviroment Variable in your dockerfile&lt;/A&gt;.&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;ENV DT_CUSTOM_PROP "Host_Group=AWS-EKS-FARGATE-SWITCH"​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;example:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_0-1684356213649.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11713i4FF0E8401CB8ACD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_0-1684356213649.png" alt="DanielS_0-1684356213649.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;As you see in STEP 1 after &lt;STRONG&gt;ENV &lt;/STRONG&gt;use &lt;A href="https://www.dynatrace.com/support/help/shortlink/process-group-properties#variables" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;DT_CUSTOM_PROP&lt;/STRONG&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;And finally set your Environment Metadata "Host_Group=my_host_group" in my example "&lt;SPAN class=""&gt;HOST_GROUP&lt;/SPAN&gt;=AWS-EKS-FARGATE-SWITCH"&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;After this please deploy your Fargate container.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;If everything goes as expected you will be able to see the Environment custom metadata on your process group&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_1-1684358026432.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11715i523042E5486C2AA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_1-1684358026432.png" alt="DanielS_1-1684358026432.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Well so far so good, now it's time to add an autotagging rule as follows:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_2-1684358289924.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11716iCFE4E2B24E088A78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_2-1684358289924.png" alt="DanielS_2-1684358289924.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;EM&gt;Please pay attention to the options on the numbers 1 to 8.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Well after this your Host(Container),Process Group, Process Group Instances and Services will have the tag from the rule of your (much the same as)"Host_Group" Environment custom metadata. &lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Feel free to add these entities to your MZ.&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT size="4"&gt;________________________________________________________________________________________________&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;My main inspiration for writing this PRO TIP is to create a guide based on ideas I saw in another post. This is the guide I wish I had found in the first place for this topic. Using that solution as a base I had to sort and test ideas and adapt to the new interface, I want to thank to &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/34281"&gt;@abraham_villega&lt;/a&gt; original answer on that &lt;A href="https://community.dynatrace.com/t5/Open-Q-A/Dockerfile-x-HostGroup/m-p/175729" target="_blank" rel="noopener"&gt;post.&lt;/A&gt;&lt;/FONT&gt; &lt;FONT size="4"&gt;and to my fellow &lt;img class="lia-deferred-image lia-image-emoji" src="https://community.dynatrace.com/html/@76177FECA09A4EC32028B85B10D79F5D/images/emoticons/Dynamight-rank-icon.png" alt=":dynamight:" title=":dynamight:" /&gt; Jason &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/38037"&gt;@ct_27&lt;/a&gt; for contacting me, you were the trigger to start writing.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 06:38:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/212531#M844</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2023-05-31T06:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Step by Step guide to set (much the same as) Host Groups in Fargate</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/213427#M848</link>
      <description>&lt;P&gt;Bookmarked for sure! Thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/35788"&gt;@DanielS&lt;/a&gt;&amp;nbsp;for sharing this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 12:42:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/213427#M848</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-05-30T12:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Step by Step guide to set (much the same as) Host Groups in Fargate</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/214711#M862</link>
      <description>&lt;P&gt;also, can they use the native AWS HostGroup tag too?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 12:12:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/214711#M862</guid>
      <dc:creator>Kenny_Gillette</dc:creator>
      <dc:date>2023-06-12T12:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Step by Step guide to set (much the same as) Host Groups in Fargate</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/252573#M1335</link>
      <description>&lt;P&gt;I have spent the last few days on this config alone. Thank you so much for posting this!!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 17:53:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/252573#M1335</guid>
      <dc:creator>tluong</dc:creator>
      <dc:date>2024-08-05T17:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Step by Step guide to set (much the same as) Host Groups in Fargate</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/258927#M1461</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/35788"&gt;@DanielS&lt;/a&gt;, You totally brightened my day!&lt;BR /&gt;See U soon !&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 10:40:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/258927#M1461</guid>
      <dc:creator>AurelienGravier</dc:creator>
      <dc:date>2024-10-11T10:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Step by Step guide to set (much the same as) Host Groups in Fargate</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/270266#M1576</link>
      <description>&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;I had tried to replicate this both by setting the environment variables as you had here both directly in the Dockerfile, and through the task definition for the container in AWS.&lt;BR /&gt;&lt;BR /&gt;I was wondering if this approach worked with ECS on Fargate, or if this only worked with Kubernetes/EKS on Fargate?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 00:09:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/270266#M1576</guid>
      <dc:creator>jkt10</dc:creator>
      <dc:date>2025-02-18T00:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Step by Step guide to set (much the same as) Host Groups in Fargate</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/270426#M1578</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/75693"&gt;@jkt10&lt;/a&gt; I used this approach on both ECS and EKS on Fargate.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 13:58:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/270426#M1578</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2025-02-19T13:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Step by Step guide to set (much the same as) Host Groups in Fargate</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/281429#M1701</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/35788"&gt;@DanielS&lt;/a&gt;&amp;nbsp;, first of, gracias por tu solución!!&lt;/P&gt;&lt;P&gt;But I am facing an issue.... We have some containers that perform similar tasks, with the same kind of process, but for different apps, that are build for different purposes.&lt;/P&gt;&lt;P&gt;So we have added the "ENV DT_CUSTOM_PROP "Host_Group=APP01" for one app, and "ENV DT_CUSTOM_PROP "Host_Name=APP02" for a second app.&lt;/P&gt;&lt;P&gt;We can see the custom metadata at the process instance entity as it should be, APP01 for one and APP02 for other. But since they don't have a hostgroup and the process are the same tech/version, they have the same ProcessGroup, and at the PG entity, it have a random value for the custom metada, and the Autotag rule ends up getting the wrong value.&lt;/P&gt;&lt;P&gt;Setting different metadata Key also don't solve this issue, since the PG ends up with all the custom metadata, and again the auto tag rule gets the wrong value, in fact, it gets all of them.&lt;/P&gt;&lt;P&gt;Do you faced this same behavior at your side?&lt;/P&gt;&lt;P&gt;Any idea on how to sort this out?&lt;/P&gt;&lt;P&gt;The idea is to easy find the respective app at the service list.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 20:27:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/281429#M1701</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2025-07-11T20:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Step by Step guide to set (much the same as) Host Groups in Fargate</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/281588#M1702</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/18264"&gt;@dannemca&lt;/a&gt;&amp;nbsp;I'm happy to help, mi amigo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look at the following config under Process Group Naming:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_0-1752531239454.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29006i9CAF0B5D45DCB2DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_0-1752531239454.png" alt="DanielS_0-1752531239454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you think&amp;nbsp; it could help you? Pls, let me know.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 15:49:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/281588#M1702</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2025-07-15T15:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Step by Step guide to set (much the same as) Host Groups in Fargate</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/282168#M1705</link>
      <description>&lt;P&gt;That will just rename the PG, but it will not define the grouping. I tried to create a simple detection rule too, using the custom env as identifier, but it did not worked...&lt;/P&gt;&lt;P&gt;I am trying with support chat for support on this.&lt;/P&gt;&lt;P&gt;Some of my containers are not getting the default AWS properties during the oneagent start, and this is causing the messing with the process grouping.&lt;/P&gt;&lt;P&gt;Gracias, amigo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit: I forgot to mention that I could sort out the auto tagging issue, using the entity selector with from/to relationship, since the process instance are getting the right tag based on the custom metadata value.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 17:39:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Step-by-Step-guide-to-set-much-the-same-as-Host-Groups/m-p/282168#M1705</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2025-07-23T17:39:19Z</dc:date>
    </item>
  </channel>
</rss>

