Enable Monitoring in Windows Server 2012 Hyper-V

By | February 6, 2014

For some reason monitoring services do not come enabled by default in Hyper V for Windows Server 2012.  However, they do in fact exist.  To enable monitoring you will be using the following Poweshell cmdlets which should be run on your Hyper V server:

Enable-VMResourceMetering
Disable-VMResourceMetering
Reset-VMResourceMetering
Measure-VM

The first PS Cmdlet should be used as follows.  From a power shell prompt run:

Enable-VMResourceMetering
VMName[0]:  VMName1
VMName[2]:  VMName2
...

Once you press enter the monitoring will begin on the VM’s you specified.  You can disable by running:

Disable-VMResourceMetering
VMName[0]:  VMName1
VMName[2]:  VMName2

Now to measure it you can run:

Measure-VM VMName1

This will display the Averages, Max, and Minimums for CPU, RAM, Disk, and Network resources being utilized.  This is definitely primitive and leaves room for features to be desired (3rd party perhaps?)