@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