DQL
Questions about Dynatrace Query Language
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

fetch connected hosts count to each active gate and display trends with DQL

Sisapy09
Guide

any have DQL to get the some upgrade problems and hosts connected to AG. we can see them in deployment page but just checking if possible to get that from DQL.

1 REPLY 1

sujit_k_singh
Champion

@Sisapy09 

You can’t pull the exact “currently connected hosts per ActiveGate” via DQL today. That counter is shown on the Deployment Status page, but there’s no exposed metric for it in Data Explorer/DQL. The closest metric is the self‑monitoring one for connected OneAgent modules, which you can trend and split by ActiveGate
 
 
If you really need the host count per AG, the workaround is to call the ActiveGates API (getAllActiveGates) and read connectedHosts, then surface that in a dashboard app/notebook. There’s a community thread with a small JS example that does exactly this
Dynatrace Professional Certified

Featured Posts