---
title: "Monitor Microsoft Hyper-V with Datadog"
description: "Ensure Hyper-V hosts and virtual machines share resources efficiently with Datadog's latest integration."
author: "Jordan Obey"
date: 2019-05-02
tags: ["infrastructure monitoring", "microsoft", "hyper-v", "compute"]
blog_type_id: the-monitor
locale: ja
---

[Hyper-V](https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/about/) is a hardware virtualization platform used to create and run virtual machines on Windows host systems. Hyper-V allocates resources from the physical hosts it runs on to the virtual machines it creates. If those resources are spread too thin, virtual machines may encounter slow performance and startup failures. With our new integration you can monitor the health of every layer of your Hyper-V stack: physical hosts, virtual machines, and all of the applications and services running on them.

![the out-of-box dashboard for Hyper-V](https://web-assets.dd-static.net/42588/1776301973-monitor-microsoft-hyperv-with-datadog-hyperv_image00.png)

## Get alerted when host memory is too low  

While memory needs vary by use case, the Hyper-V documentation [recommends](https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/about/..%5creference%5chyper-v-requirements) running only three to four VMs on a physical host that has 4 GB of available memory. You can allocate host memory either statically (which configures a pre-set memory limit for each VM) or [dynamically](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh831766(v%3Dws.11)) (which adjusts memory allocation based on virtual machine workload). Regardless of which approach you're using, you'll want to monitor the available memory on your hosts to ensure that new and existing virtual machines have sufficient resources.

With our integration, you can set up an alert to get notified when a Hyper-V host’s available memory drops below a set threshold. This way, you can avoid excessive [paging](https://en.wikipedia.org/wiki/Paging) and prevent performance impairment by stopping the non-essential services on memory-intensive virtual machines or moving them to other hosts.

![Create Hyper-V notifications with an alert set up page](https://web-assets.dd-static.net/42588/1776301978-monitor-microsoft-hyperv-with-datadog-hyperv_image1.png)

### Monitor CPU workloads across physical and virtual machines

In Hyper-V, logical processors correspond to the number of threads that can run on your hosts, while virtual processors represent the portion of these logical processors that can be allocated to virtual machines. Datadog provides deep visibility into the workloads running on both types of processors, so you can get a complete picture of your system. In Datadog, Hyper-V metrics are tagged by `host` and/or `instance`, which correspond to the name of a physical host or virtual machine.

If a host’s logical processor utilization is over 90 percent, [that host is overloaded](https://docs.microsoft.com/en-us/windows-server/administration/performance-tuning/role/hyper-v-server/detecting-virtualized-environment-bottlenecks), which means that you should either migrate to a host with more compute capacity or reduce the number of virtual machines it is running.

To anticipate such a case, you can graph real-time CPU usage across your Hyper-V infrastructure, broken down by physical host, to monitor how it changes over time. In the example below, we have added a marker to help annotate the 90 percent limit. In addition to graphing CPU usage, you can also set up an alert to notify you if a host is overloaded.

![Real-time graph of Hyper-V CPU usage with annotated limit](https://web-assets.dd-static.net/42588/1776301983-monitor-microsoft-hyperv-with-datadog-hyperv_image02.png)

If you want to inspect a resource-intensive host in more detail, you can use the [out-of-the-box dashboard's](https://app.datadoghq.com/screen/integration/30273/hyper-v) `$scope` template variable to filter by that host—simply select the `host:<HOST_NAME>` tag in the dropdown menu. The [top list](https://www.datadoghq.com/blog/easy-ranking-new-top-lists.md) will update to display that host's virtual machines, ranked by virtual processor runtime. This way, you can quickly identify the virtual machines with the greatest workloads that may be causing slower performance, and act to [reduce their CPU usage](https://docs.microsoft.com/en-us/windows-server/administration/performance-tuning/role/hyper-v-server/processor-performance ).

![Top list of resource-intensive Hyper-V hosts](https://web-assets.dd-static.net/42588/1776301987-monitor-microsoft-hyperv-with-datadog-hyperv_image03.png)

### Get real-time insights with Windows Live Process monitoring

Virtual machines in Hyper-V run on hosts as [Virtual Machine Worker Processes (VMWP)](https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/hyper-v-architecture). Datadog’s [Live Process monitoring](https://www.datadoghq.com/blog/windows-process-monitoring.md) provides a granular view of process-level resource usage across each of your Hyper-V virtual machines, updated every two seconds. By using tags, you can filter to narrow your focus to processes running on a particular Hyper-V host. In addition to real-time process-level system metrics, you can reference historical process data going back 48 hours for further context.

![Hyper-v live process monitoring page](https://web-assets.dd-static.net/42588/1776301992-monitor-microsoft-hyperv-with-datadog-hyperv_image4.png)

## Monitor Hyper-V alongside the rest of your Windows stack 

Hyper-V is part of a growing list of Datadog's 1,000+ integrations, including [Microsoft Azure](https://docs.datadoghq.com/integrations/azure.md?tab=azurecliv20), [IIS](https://www.datadoghq.com/blog/iis-metrics.md), and [SQL Server](https://www.datadoghq.com/blog/sql-server-monitoring.md). Datadog enables you to monitor the resource usage of Hyper-V hosts and virtual machines with real-time alerting and visualization. If you aren’t already using Datadog, get started with a 14-day <!-- Sign-up trigger (free trial) omitted -->.