cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PRO TIP - Step by Step guide to set (much the same as) Host Groups in Fargate

DanielS
DynaMight Guru
DynaMight Guru

If you want to monitor AWS Fargate with Dynatrace and deploy OneAgent you have three options according to your scenario:

As you may notice the parameter:

--set-host-group=my_host_group

 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.

But the following guide is a step by step solution to resolve this using a workaround.

  1. No matter what option you selected to create the container please add an Enviroment Variable in your dockerfile.

 

 

ENV DT_CUSTOM_PROP "Host_Group=AWS-EKS-FARGATE-SWITCH"​

 

example:
DanielS_0-1684356213649.png


 

  • As you see in STEP 1 after ENV use DT_CUSTOM_PROP
  • And finally set your Environment Metadata "Host_Group=my_host_group" in my example "HOST_GROUP=AWS-EKS-FARGATE-SWITCH"
  • After this please deploy your Fargate container.
  • If everything goes as expected you will be able to see the Environment custom metadata on your process group
    DanielS_1-1684358026432.png

  • Well so far so good, now it's time to add an autotagging rule as follows:
    DanielS_2-1684358289924.png

    Please pay attention to the options on the numbers 1 to 8.

  • 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.
  • Feel free to add these entities to your MZ.

________________________________________________________________________________________________

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 @abraham_villega original answer on that post. and to my fellow :dynamight: Jason @ct_27 for contacting me, you were the trigger to start writing.

 

The true delight is in the finding out rather than in the knowing.
4 REPLIES 4

ChadTurner
DynaMight Legend
DynaMight Legend

Bookmarked for sure! Thanks @DanielS for sharing this 🙂

-Chad

Kenny_Gillette
DynaMight Leader
DynaMight Leader

also, can they use the native AWS HostGroup tag too?

Dynatrace Certified Professional

tluong
Newcomer

I have spent the last few days on this config alone. Thank you so much for posting this!!

AurelienGravier
DynaMight Champion
DynaMight Champion

Thank you @DanielS, You totally brightened my day!
See U soon !

Observability consultant - Dynatrace Associate/Pro/Services certified

Featured Posts