Back to Blog
tutorialIntermediate5 min read

Windows Exporter

This guide will provide instructions on how to install Windows Exporter on Windows 11

Prometheus - Windows Exporter

Introduction

This guide will provide instructions on how to install Windows Exporter on Windows 11.

Prerequisites

In order to use Windows Exporter you should have Prometheus and Grafana running.

Download Windows Exporter

Download Latest

The first step is to navigate to the Windows Exporter Releases page and get the latest version. At the time of this wiki that is version windows_exporter-0.29.2-amd64.msi and this will be used in the wiki as an example.

Install

You will receive a security notice from Windows when you attempt to install. If you accept the security risks, click "More Info" and then "Run Anyway".

Windows Defender SmartScreen warning dialog showing 'Windows protected your PC' for windows_exporter-0.28.2-amd64.msi from Unknown publisher, with Run anyway and Don't run buttons
Windows Defender SmartScreen Warning for Windows Exporter

Click the "Yes" on the pop up to run with Admin privileges. The installer will pop up, click "Next" to begin. If Windows Exporter will be running on a different host than Prometheus, you must install the firewall exception so that Prometheus can connect to the Windows Exporter endpoint over the network.

Windows Exporter MSI installer Custom Setup screen showing windows_exporter 0.29.2 with Firewall Exception feature option, installing to C:\Program Files\windows_exporter
Windows Exporter MSI Installer Custom Setup

Click next to move to the configuration section. I use the defaults, but the Windows Exporter GitHub page can be referenced for available options. Click "Next" when ready. Windows Exporter will be installed to C:\Program Files\windows_exporter which will also have the config file if you wish to make any changes.

Update Prometheus

In order to scrape the metrics with Prometheus, update the prometheus.yml file with the following:

  - job_name: 'windows_exporter'
    scrape_interval: 15s
    static_configs:
      - targets: ['localhost:9182']

Make sure to update localhost with the IP of the host you installed Windows Exporter on if it is not the same host that Prometheus is running on.

Verify

Open up the Prometheus web front end and then select "Status" and then "Targets". You should see a section for "windows_exporter" and that the state is UP. If it says "UNKNOWN" give it a little bit of time and then click refresh.

Prometheus web UI targets page showing windows_exporter (1/1 up) with endpoint http://localhost:9182/metrics in UP state, last scrape 4.432s ago
Prometheus Targets Showing Windows Exporter UP

Grafana Dashboard

Open up Grafana and go to "Dashboards". Then click "New" and then "Import". Paste 20763 into the Grafana ID input. Then click "Load". You should see the Windows Exporter Dashboard load. I prefer to make my UID unique by adding the hostname to it, this is helpful if you have multiple hosts that will have a dashboard as the UID must be unique. Select your Prometheus data source. Click "Import" when ready.

Grafana import dashboard dialog showing Name 'Windows Exporter Dashboard 2024', Folder 'Dashboards', Unique identifier field, and Prometheus data source selector with Import button
Grafana Import Dashboard for Windows Exporter

Once imported, you should see the dashboard

Grafana dashboard showing Windows Exporter Overview of Server Resources with panels for CPU Usage by Host, Memory Usage by Host, Network details, Maximum disk read/write, and Maximum Disk IO
Grafana Windows Exporter Dashboard Overview

And that is it! Happy monitoring.