# What is the recommended way of adding HostGroup while connecting One Agent

**URL:** <https://community.dynatrace.com/t/what-is-the-recommended-way-of-adding-hostgroup-while-connecting-one-agent/19999>\
**Category:** Open Q&A\
**Tags:** oneagent, hosts-classic\
**Created:** [March 14, 2019, 2:44pm UTC](https://community.dynatrace.com/t/what-is-the-recommended-way-of-adding-hostgroup-while-connecting-one-agent/19999 "2019-03-14T14:44:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [March 15, 2019, 2:44am UTC](https://community.dynatrace.com/t/what-is-the-recommended-way-of-adding-hostgroup-while-connecting-one-agent/19999/4 "2019-03-15T02:44:40Z")

</div>

I go a bit further and recommend something like:

ENV-APP-FUNCTION

And I recommend putting only hosts that perform the same function (as a cluster) in the same host group.

This way you can push OneAgent updates or update Anomaly detection for the group with confidence, and it facilitates getting correct Process Groups.

You will have more Host Groups using this technique, but I think it’s worth it.

HTH,

dave

---

_[View the full topic](https://community.dynatrace.com/t/what-is-the-recommended-way-of-adding-hostgroup-while-connecting-one-agent/19999)._
