IT tutorials
 
Technology
 

Windows Server 2012 : Using Resource Metering

8/13/2013 11:24:05 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

In private cloud environments, you might have different scenarios for each department, location, business unit, or even client, in the case of service providers. One of the benefits a cloud can offer is the ability to measure and bill your clients based on the current consumption of services. Tracking utilization for these resources can be difficult and complex, requiring proper applications and systems.

Hyper-V makes that simple with Resource Metering. This allows you to track and measure the current usage for virtual machines and resources pools, helping the IT department to bill clients based on the usage of cloud resources.

These are some examples of metrics that can be collected with Resource Metering:

  • Average, minimum, and maximum VM memory usage
  • Average VM processor usage
  • Total VM disk allocation
  • Network traffic reports (incoming and outgoing)
  • Resource pool measurement for all types of resources within a pool

With Resource Metering, companies can implement advanced billing strategies, creating a cost-effective way to track resource utilization, based on virtual machines and resource pools.

You will see in this recipe how Resource Metering can be enabled for virtual machines and resource pools and how to extract its results.

Getting ready

Although it is not configured by default, Resource Metering can be enabled on every virtual machine in Windows Server 2012, using PowerShell. Make sure you have a PowerShell console opened as administrator before you begin.

How to do it...

The following steps will walk you through the Resource Metering PowerShell commandlets.

  1. To enable Resource Metering for all virtual machines in a host, type the following command:
    Enable-VMResourceMetering –VMName *
    
  2. If you want to enable it for a particular virtual machine, type the following command, replacing SYD-EX1 with the virtual machine name:
    Enable-VMResourceMetering –VMName SYD-EX1
    
  3. To extract the measurement details for a virtual machine, use the command Measure-VM, as shown in the following screenshot:
    How to do it...
  4. To see more Resource Metering details for a virtual machine, use the command shown in the following screenshot:
    How to do it...
  5. To verify which virtual machine has Resource Metering enabled, type this command:
    Get-VM * | Format-List Name,ResourceMeteringEnabled
    
  6. For more details about inbound and outbound network utilization traffic, type the command shown in the following screenshot:
    How to do it...
  7. To enable Resource Metering for a resource pool, type the following command to change the resource pool name to Primordial and the resource pool type to Memory:
    Enable-VMResourceMetering –ResourcePoolName Primordial –ResourcePoolType Memory
    
  8. To measure the resource pool data, use the command Measure-VMResourcePool, as shown in the following screenshot.
    How to do it...
  9. Use the commandlet Reset-VMResourceMetering to reset the resource utilization data collected by Resource Metering. The following command shows how to reset the data for a virtual machine called SYD-SP1:
    Reset-VMResourceMetering –VMName SYD-SP1
    
  10. To disable Resource Metering, use the command Disable-VMResourceMetering. The following command shows how to disable Resource Metering for a virtual machine called SYD-SP1:
    Disable-VMResourceMetering –VMName SYD-SP1
    

How it works...

Although there is no graphical interface to configure it, Resource Metering is quite easy to manage using PowerShell. The commands let you enable, measure, reset, and disable the counters for virtual machines and resource pools. It is also easy to create reports with measurement outputs, by using the output values to create advanced methods to charge your clients based on utilization of resources.

The four resources that can be monitored on a VM are processor (in megahertz) and memory, network, and disk (in megabytes).

The results can be collected and reset at any time, helping you to measure the virtual machine or resource pool usage based on your company's needs.

Now, with resource utilization details, you can create your billing system or simply track the resource information from your virtual machines and resource pools.

 
Others
 
- Windows Server 2012 : Monitoring Hyper-V Replica
- Windows Phone 8 : Other Ways of Launching Your App (part 2) - Using a File Association
- Windows Phone 8 : Other Ways of Launching Your App (part 1) - Using a Custom Protocol
- Windows Phone 8 : Phone Integration - Live Tiles (part 2)
- Windows Phone 8 : Phone Integration - Live Tiles (part 1)
- Active Directory 2008 : Administering Groups in an Enterprise (part 3) - Understanding Shadow Groups, Default Groups
- Active Directory 2008 : Administering Groups in an Enterprise (part 2) - Delegating the Management of Group Membership
- Active Directory 2008 : Administering Groups in an Enterprise (part 1) - Protecting Groups from Accidental Deletion
- Active Directory 2008 : Automating the Creation and Management of Groups (part 2)
- Active Directory 2008 : Automating the Creation and Management of Groups (part 1)
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us