{"id":2374,"date":"2013-07-16T13:44:20","date_gmt":"2013-07-16T05:44:20","guid":{"rendered":"http:\/\/rmohan.com\/?p=2374"},"modified":"2013-07-16T16:09:22","modified_gmt":"2013-07-16T08:09:22","slug":"hyper-v-resource-metering-in-windows-server-2012","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2374","title":{"rendered":"Hyper-V Resource Metering in Windows server 2012"},"content":{"rendered":"<p>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.<\/p>\n<p>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.<br \/>\nTo assist with more accurate, streamlined chargebacks while protecting historical information, Hyper-V in Windows Server 2012 \u201cServer 8 Beta\u201d 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.<br \/>\nMetrics collected for each virtual machine<br \/>\n\u00a7  Average CPU usage, measured in megahertz over a period of time.<br \/>\n\u00a7  Average physical memory usage, measured in megabytes.<br \/>\n\u00a7  Minimum memory usage (lowest amount of physical memory).<br \/>\n\u00a7  Maximum memory usage (highest amount of physical memory).<br \/>\n\u00a7  Maximum amount of disk space allocated to a virtual machine.<br \/>\n\u00a7  Total incoming network traffic, measured in megabytes, for a virtual network adapter.<br \/>\n\u00a7  Total outgoing network traffic, measured in megabytes, for a virtual network adapter<\/p>\n<p>To enable Hyper-V resource metering on hyper-v host HV01 run the following PowerShell commands:<br \/>\nGet-VM -ComputerName HV01 | Enable-VMResourceMetering<br \/>\nBy default the collection interval for Hyper-v metering data is one hour to change this interval the following PowerShell command can be used \u201cvalue used in the command below is one minute\u201d:<br \/>\nSet-vmhost \u2013computername HV01 \u2013ResourceMeteringSaveInterval 00:01:00<br \/>\nTo get all VMs metering data run the following PowerShell command:<br \/>\nGet-VM -ComputerName HV01 | Measure-VM<br \/>\nTo get a particular VM \u201ctest01\u201d metering data run the following PowerShell command:<br \/>\nGet-VM -ComputerName HV01 -Name \u201ctest01\u201d | Measure-VM<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n<p>To implement advanced billing strategies that measure both the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2374"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2374"}],"version-history":[{"count":5,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2374\/revisions"}],"predecessor-version":[{"id":2379,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2374\/revisions\/2379"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}