To deploy Windows Exporter for monitoring Windows containers using the YAML file, you have to perform the following actions.

Procedure

  • Run the following commands on each windows node to install windows-exporter as a service. You can find the latest windows-exporter msi file here.
    $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)
    msiexec /i C:\Users\windows.msi ENABLED_COLLECTORS=cpu,cs,logical_disk,net,os,service,system,textfile,container,memory