Hyper-V Resource Metering in Windows server 2012 “Server 8 Beta”


IT organizations need tools to charge back business units that they support while providing the business units with the right amount of resources to match their needs. For hosting providers, it is equally important to issue chargebacks based on the amount of usage by each customer.

To implement advanced billing strategies that measure both the assigned capacity of a resource and its actual usage, earlier versions of Hyper-V required users to develop their own chargeback solutions that polled and aggregated performance counters. These solutions could be expensive to develop and sometimes led to loss of historical data.

To assist with more accurate, streamlined chargebacks while protecting historical information, Hyper-V in Windows Server 2012 “Server 8 Beta” introduces Resource Metering, a feature that allows customers to create cost-effective, usage-based billing solutions. With this feature, service providers can choose the best billing strategy for their business model, and independent software vendors can develop more reliable, end-to-end chargeback solutions on top of Hyper-V.

Metrics collected for each virtual machine

§  Average CPU usage, measured in megahertz over a period of time.

§  Average physical memory usage, measured in megabytes.

§  Minimum memory usage (lowest amount of physical memory).

§  Maximum memory usage (highest amount of physical memory).

§  Maximum amount of disk space allocated to a virtual machine.

§  Total incoming network traffic, measured in megabytes, for a virtual network adapter.

§  Total outgoing network traffic, measured in megabytes, for a virtual network adapter

To enable Hyper-V resource metering on hyper-v host HV01 run the following PowerShell commands:

Get-VM -ComputerName HV01 | Enable-VMResourceMetering

By default the collection interval for Hyper-v metering data is one hour to change this interval the following PowerShell command can be used “value used in the command below is one minute”:

Set-vmhost –computername HV01 –ResourceMeteringSaveInterval 00:01:00

To get all VMs metering data run the following PowerShell command:

Get-VM -ComputerName HV01 | Measure-VM

To get a particular VM “test01” metering data run the following PowerShell command:

Get-VM -ComputerName HV01 -Name “test01” | Measure-VM


Comments (7)

  1. Excellent.

    A note worthy of localization -)

  2. kns says:

    Is there a way to monitor and restrict disk usage based on IOPS? VMware provides this feature

  3. James Conrad says:

    -ResourceMeteringSaveInterval has a minimum of 1 hour so it's not possible to set it at 00:01:00.

  4. Shakiel ZAR says:

    Very Help Full, – script it for a large Hyper-V Deployment

  5. showbox says:

    Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
    For more info on showbox please refer below sites:
    Latest version of Showbox App download for all android smart phones and tablets.
    http://movieboxappdownloads.com/ – It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
    For showbox on iOS (iPhone/iPad), please read below articles:
    Showbox for PC articles:
    There are countless for PC clients as it is essentially easy to understand, simple to introduce, gives continuous administration, effectively reasonable. it is accessible at completely free of expense i.e., there will be no establishment charges and after establishment
    it doesn’t charge cash for watching films and recordings. Not simply watching, it likewise offers alternative to download recordings and motion pictures. The accompanying are the strides that are to be taken after to introduce Showbox application on Android.
    The above all else thing to be done is, go to the Security Settings on your Android telephone, Scroll down and tap on ‘Obscure sources’.

Skip to main content