talira

windows_exporter

A Prometheus exporter for Windows machines

open sourceMITself-hostablefree

windows_exporter is the Prometheus community's agent for Windows: it reads performance counters, WMI and other Windows APIs and serves CPU, memory, disk, network, service and process metrics on port 9182 for Prometheus to scrape. Beyond the defaults, about fifty optional collectors cover Active Directory, IIS, SQL Server, Exchange, Hyper-V, DNS and DHCP servers, failover clusters, scheduled tasks, Windows Update, GPUs, custom performance counters and WMI queries, and a textfile collector reads metrics that scripts write. It installs as a Windows service from a signed MSI, or runs as a HostProcess container on Windows Kubernetes nodes, and ships Grafana dashboards and a Prometheus mixin with alert runbooks. It is MIT-licensed and maintained in the prometheus-community GitHub organization, part of the Prometheus project.

Ways to install

Problems it solves

  • graph CPU, memory, disk and network usage of our Windows servers in Grafana
  • alert when a Windows service stops on any of our servers
  • collect metrics from Windows machines into the Prometheus we already run for Linux
  • monitor IIS sites and application pools with Prometheus
  • track SQL Server performance counters without buying a separate monitoring tool
  • watch Active Directory domain controllers, DNS and DHCP servers for problems
  • monitor Hyper-V hosts and the VMs running on them
  • know which Windows servers are missing updates or failing scheduled tasks
  • export a custom Windows performance counter or WMI query as a metric
  • get node metrics from the Windows nodes in our Kubernetes cluster
  • roll out a metrics agent to many Windows servers with an MSI and msiexec flags
  • alert before a disk on a Windows file server fills up

Features

  • default collectors for CPU, logical and physical disks, memory, network, OS, services and system
  • optional collectors for Active Directory, AD CS, AD FS, DNS, DHCP, DFSR and NPS
  • IIS, SQL Server, Exchange, .NET Framework, MSMQ and SMTP collectors
  • Hyper-V, failover cluster, Storage Spaces, SMB and VMware guest collectors
  • process, scheduled task, Windows Update, license, time service and printer collectors
  • GPU and container metrics
  • custom performance counter and WMI query collectors
  • textfile collector for metrics from scripts
  • collect[] parameter to filter collectors per scrape
  • signed MSI installer that sets up a Windows service and an optional firewall exception
View 4 more
  • YAML config file alongside command-line flags
  • TLS and authentication through the exporter-toolkit web config
  • HostProcess container image for Windows Kubernetes nodes
  • Grafana dashboards, alerting rules and a Prometheus mixin with runbooks

Limitations

  • Doesn't support Windows Server 2012 R2 or earlier: it supports Windows Server 2016 and later and Windows 10 and 11 (21H2 or later)3

Alternatives

The same job

These do what windows_exporter does.

  1. Telegraf Open source agent for collecting metrics from infrastructure, applications, and devices
  2. Grafana Alloy OpenTelemetry Collector distribution with programmable pipelines
  3. Netdata Full-stack observability: metrics, logs, traces and more, per second
  4. Zabbix The enterprise-class open source observability solution
  5. Node exporter Prometheus exporter for hardware and OS metrics exposed by *NIX kernels
  6. Blackbox exporter Blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP, ICMP and gRPC

Compare windows_exporter with the top 3