Windows node exporter install error

Locked
User avatar
Mihai Romania
Posts: 65
Joined: 2023 May 03, 14:12
Location: ROMANIA
Contact:

Windows node exporter install error

Post by Mihai »

Service failed to start during MSI install. Fix:

Click Ignore to finish install.
Check port conflict:

Code: Select all

netstat -ano | findstr :9182
Check service log: Event Viewer → Windows Logs → System, filter for windows_exporter
Verify config file syntax if using --config.file (YAML) or collector flags — bad flags in service args cause immediate exit.
Check service binary path/args:

Code: Select all

sc qc windows_exporter
Try manual start for real error:

Code: Select all

"C:\Program Files\windows_exporter\windows_exporter.exe" --config.file="C:\Program Files\windows_exporter\config.yml"
Ensure install run as Administrator (elevated cmd/powershell), not just admin user without elevation.
If installed with custom collectors (--collectors.enabled=...), invalid collector name = crash on start.


WMI Performance Adapter (WmiApSrv) is disabled. Enable it:

Code: Select all

sc config wmiapsrv start= demand
sc start wmiapsrv
Then restart windows_exporter:

Code: Select all

sc config windows_exporter depend= wmiapsrv
net start windows_exporter
Check dependent adapter status after:

Code: Select all

sc qc wmiapsrv
Default port 9182:

Code: Select all

http://localhost:9182/metrics
From another host:

Code: Select all

http://<hostname_or_ip>:9182/metrics
Check listener:

Code: Select all

netstat -ano | findstr :9182
Firewall rule if remote access fails:

Code: Select all

netsh advfirewall firewall add rule name="windows_exporter" dir=in action=allow protocol=TCP localport=9182
windows exporter config.yaml

Code: Select all

collectors:
  enabled: cpu,logical_disk,net,os,service,system,memory,tcp,textfile,process,diskdrive,thermalzone,time,cpu_info,scheduled_task,pagefile

collector:
  service:
    include: windows_exporter

log:
  level: warn
I'm on LinkedIn
Locked