Mar 8, 2026

Prometheus NSSM Windows Exporter and Grafana

prometheus.exe --config.file=prometheus.yml

Access is denied.


https://wingetgui.com/apps/Prometheus-WMIExporter?utm_source=chatgpt.com


cd C:\Prometheus

prometheus.exe --config.file=prometheus.yml



http://localhost:9090

  

Download NSSM   

--Correct command

R:\nssm-2.24\win64\nssm.exe install prometheus


Path

C:\Prometheus\prometheus.exe


Startup Dir 

C:\Prometheus


Argument 

--config.file=prometheus.yml


R:\nssm-2.24\win64\nssm.exe install prometheus C:\Prometheus\prometheus.exe --config.file=C:\Prometheus\prometheus.yml


--Final Architecture

----------------------------------

Windows Server

      ↓

Windows Exporter (9182)

      ↓

Prometheus (9090)

      ↓

Grafana (3000)

      ↓

Monitoring Dashboard

----------------------------------


windows_exporter-0.24.0-amd64.msi


2️⃣ Select collectors (recommended)


Enable:

cpu

memory

logical_disk

net

os

service

system

Default port 9182


http://localhost:9182/metrics


Add to Prometheus

scrape_configs:

  - job_name: "windows"

    static_configs:

      - targets: ["192.168.1.10:9182"]

  

Test in Prometheus


Open Prometheus UI and run query:


windows_cpu_time_total   


If you are monitoring multiple Windows servers, install windows_exporter on each server.

No comments:

Post a Comment

If you have any doubt or question, please contact us.