Monitor Real Time CPU and Memory utilization of windows system on Grafana


Monitoring the CPU and Memory utilisation of the windows servers is one of the important parameters to determine the application performance. With the help of the tools available in the market, we can monitor the server performance with ease.

Find the steps below to configure the monitoring tool on windows server/machine

Install a WMI tool.

  1. Download the latest version of WMI .msi tool from the below link

https://github.com/prometheus-community/windows_exporter/releases

  1. Click on the WMI.msi file and follow the instructions provided by the installer to install the tool.
  2. Goto Services option present under Task Manager to check if the windows_exporter service is running 

Access the URL http://localhost:9182/metrics to check if windows Metrix is being displayed. If yes, then the WMI tool is installed correctly.

Bind windows-exporter with Prometheus

  1. Download the latest version of promanthese tool from the below link

https://prometheus.io/download/

  1. Extract the downloaded zip file and open prometheus.yml and add the following tags and save it 

- job_name: "Wmi-exporter" # metrics_path defaults to '/metrics' # scheme defaults to 'http'. static_configs: - targets: ['localhost:9182']
  1. Once you start the prometheus application, you can see a message stating that “Server is ready to receive web requests.”.
  1. Access the url http://localhost:9090/targets and check if Wmi exporter state is up and running.

Install Grafana and configure the windows monitoring dashboard

  1. Download the Grafana installer from the below link

https://grafana.com/grafana/download?platform=windows

  1. Click on the grafana-enterprise-8.4.3.windows-amd64.msi file and follow the instructions provided by the installer to install the tool.
  2. Access the url http://localhost:3000/login in the system, login with the default credentials username: admin and password: admin and change the password accordingly.
  1. After login, click on Add your first data source. 
  1. Select Prometheus.Enter the URL: https://localhost:9090
  1. Scroll down and click on Save & test, message Data source is working should be displayed
  1. Click on import 
  1. Enter the dashboard ID: 14451 and click on load 
  1. In the option, enter the name and select the configured data source 
  1. Finally click on import and we should be able to see the CPU/Memory/Disk utilisation real time

Leave A Comment

Your email address will not be published. Required fields are marked *