# hosts connected to each AGs

**URL:** <https://community.dynatrace.com/t/hosts-connected-to-each-ags/48439>\
**Category:** Open Q&A\
**Tags:** activegate, dynatrace-managed, oneagent\
**Created:** [October 21, 2024, 11:48am UTC](https://community.dynatrace.com/t/hosts-connected-to-each-ags/48439 "2024-10-21T11:48:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrrknt](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@shrrknt](https://community.dynatrace.com/u/shrrknt)\
**Post date:** [October 21, 2024, 11:48am UTC](https://community.dynatrace.com/t/hosts-connected-to-each-ags/48439/1 "2024-10-21T11:48:27Z")

</div>

can I get Number of currently connected hosts ​to each activegate in a dashboard ?

---

<div class="post-metadata">

**Author:** ![rishabh\_yadav2](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rishabh_yadav2/32/396_2.png) [@rishabh\_yadav2](https://community.dynatrace.com/u/rishabh_yadav2)\
**Post date:** [October 21, 2024, 2:53pm UTC](https://community.dynatrace.com/t/hosts-connected-to-each-ags/48439/2 "2024-10-21T14:53:35Z")

</div>

Not sure about dropping it on a dashboard or something but you can definitely visualize it in Dynatrace using the following steps:

Goto Deployment Status --\> ActiveGate

 ![rishabh_yadav2_0-1729522258224.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/fea93d72a668d60ef220614a22ede4fd4cb90e24.png)

Then you have a readymade view for the same.

 ![rishabh_yadav2_1-1729522389222.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/4/2461213852a3403c95d3ea4e27e4bafcd05f3527.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 21, 2024, 3:00pm UTC](https://community.dynatrace.com/t/hosts-connected-to-each-ags/48439/3 "2024-10-21T15:00:29Z")

</div>

Hello&nbsp;[@shrrknt](https://community.dynatrace.com/user/74167)

1. Within Data Explorer and Metrics, there is no dedicated metric for the highlighted request.
2. You can deep dive into&nbsp;[built-in-metrics.](https://docs.dynatrace.com/docs/observe-and-explore/metrics-classic/built-in-metrics)
3. If you didn’t reach a possible solution, raise it as&nbsp;[Dynatrace Product Ideas](https://community.dynatrace.com/category/DynatraceProductIdeas)

Hoping this adds value.

BR,

Peter.

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [October 21, 2024, 10:44pm UTC](https://community.dynatrace.com/t/hosts-connected-to-each-ags/48439/4 "2024-10-21T22:44:54Z")

</div>

Unfortunately not quite what you’re after but you can graph the number of agent modules connected to an Activegate using&nbsp;dsfm:active\_gate.communication.agent\_modules.connected. This will give you some idea of the distribution of agent to Activegate connections.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 21, 2024, 10:55pm UTC](https://community.dynatrace.com/t/hosts-connected-to-each-ags/48439/5 "2024-10-21T22:55:46Z")

</div>

[@shrrknt](https://community.dynatrace.com/user/74167),

Not sure if you can access it with DQL.

In metrics, I don’t know of a way to get hosts, but there is another particularly interesting metric: dsfm:active\_gate.communication.agent\_modules.connected

Some of the benefits I see in getting the number of modules connected:

1. OneAgent is really not one connection to an AG, but a series of them
2. In fact, one host with OneAgent might be communicating with several AGs at the same time.
3. You can split by AG, but also group,network\_zone and working\_mode.
