To set up the Windows exporter on a Windows node, you have to perform the following actions.

Procedure

  1. Install GO on each Windows node from here.
  2. Run the following commands to download the windows_exporter.msi file from this link. Copy the link of the msi file from the above link.
    $url = "https://github.com/prometheus-community/windows_exporter/releases/download/v0.14.0/windows_exporter-0.14.0-amd64.msi"
    $output = "C:\Users\windows.msi"
    $start_time = Get-Date
    $wc = New-Object System.Net.WebClient
    $wc.DownloadFile($url, $output)
    
  3. Run the following command.
    msiexec /i <path-to-msi-file> ENABLED_COLLECTORS=cpu,cs,logical_disk,net,os,service,system,textfile,container,memory