# Dashboard with virtual machines running on ESXi host

**URL:** <https://community.dynatrace.com/t/dashboard-with-virtual-machines-running-on-esxi-host/38337>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, data-explorer, dashboards-classic, vmware\
**Created:** [February 8, 2023, 5:45pm UTC](https://community.dynatrace.com/t/dashboard-with-virtual-machines-running-on-esxi-host/38337 "2023-02-08T17:45:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthias\_dillie](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@matthias\_dillie](https://community.dynatrace.com/u/matthias_dillie)\
**Post date:** [February 8, 2023, 5:45pm UTC](https://community.dynatrace.com/t/dashboard-with-virtual-machines-running-on-esxi-host/38337/1 "2023-02-08T17:45:54Z")

</div>

Hi all,

is there a way to show a table in a dashboard with all virtual machines running on a VMware ESXi host or better on all hosts in a zone? I would like to have an overview to see on which ESXi hosts the virtual machines are running.

Thanks

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [February 8, 2023, 8:31pm UTC](https://community.dynatrace.com/t/dashboard-with-virtual-machines-running-on-esxi-host/38337/2 "2023-02-08T20:31:18Z")

</div>

Yep, there is.

You can use any host metric you need, example builtin:host.availability, and then , set the split by host, and use the filter to select the ESXi Host you need to see the VMs of.

Example:

 ![Screenshot 2023-02-08 at 17.29.12.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/8a88963da5a7053f0707b1196b4a7fe2d8f43966.png)

This is from [demo.live.dynatrace.com](http://demo.live.dynatrace.com), so I see no issues in showing hostnames here.

That’s the current formula:

builtin:host.availability:filter(and(or(in(“dt.entity.host”,entitySelector(“type(host),fromRelationship.runsOn(type(HYPERVISOR),entityName.equals(~“pl1l-vh90.lab.dynatrace.org~”))”))))):splitBy(“dt.entity.host”):sort(value(auto,descending)):limit(20)

Try and let us know.

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [February 8, 2023, 8:39pm UTC](https://community.dynatrace.com/t/dashboard-with-virtual-machines-running-on-esxi-host/38337/3 "2023-02-08T20:39:59Z")

</div>

Just noticed that the first metric I sent will bring only the hosts where OneAgent are running.

If you need all VMs , despite the OneAgent, please use any of these metrics from builtin:cloud.vmware.vm.\*

Example:

 ![Screenshot 2023-02-08 at 17.37.35.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/6/d6c54ac903ecb0bffe334fe6bb440d6e3fc9fc96.png)

Formula:

builtin:cloud.vmware.vm.cpu.readyPerc:filter(and(or(in(“dt.entity.virtualmachine”,entitySelector(“type(virtualmachine),fromRelationship.runsOn(type(HYPERVISOR),entityName.equals(~“pl1l-vh90.lab.dynatrace.org~”))”))))):splitBy(“dt.entity.virtualmachine”):sort(value(auto,descending)):limit(20)

Observe that this time, it is showing one more VM, which was not listed before, since OneAgent not running.

from ESXi Host details page:

 ![Screenshot 2023-02-08 at 17.39.40.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/969e7f8ee7761fa631413364323774d6ab65aad2.png)

---

<div class="post-metadata">

**Author:** ![matthias\_dillie](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@matthias\_dillie](https://community.dynatrace.com/u/matthias_dillie)\
**Post date:** [February 9, 2023, 5:09pm UTC](https://community.dynatrace.com/t/dashboard-with-virtual-machines-running-on-esxi-host/38337/4 "2023-02-09T17:09:16Z")

</div>

Thank you. This works, as the ESXi-hosts are rather static. I can produce a tabel for every ESXi-host with all the hosts running on this ESXi-host.
