Tech Blog

Testing

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

By Shabir shariff2 min read
← Back to blog

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

Keep reading

You may be interested in

Browse all articles →
Software Testing: Challenges and Solutions
February 8, 20244 min read

Software Testing: Challenges and Solutions

Introduction – Testing software is a crucial aspect of the development process. It makes sure that the product’s functionality works as expected, fulfills the user requirements, and makes sure it works without errors. In this blog, we will list down some of the most common challenges faced in software testing and conclude with how to […]

By Saboor ChandshahaRead More →
Streamlining Software Quality: The Power of Automating Black Box Testing
February 8, 20244 min read

Streamlining Software Quality: The Power of Automating Black Box Testing

Introduction :  In the dynamic realm of software development, ensuring the robustness and reliability of applications is of paramount importance. Black box testing, a technique that assesses software functionality without requiring knowledge of its internal code, plays a vital role in identifying potential defects. As the complexity of software systems continues to escalate, the manual […]

By Anthony Gilchrist G SRead More →
Implementing best practices for end-to-end testing in cloud migration
January 31, 20245 min read

Implementing best practices for end-to-end testing in cloud migration

Importance of End-to-End Testing Assume an organization’s core systems are now hosted on the cloud—a complex ecosystem linked by data threads. End-to-end testing is the foundation upon which the reliability and performance of this interconnected web is built. This rigorous testing technique makes it possible to detect vulnerabilities, optimize operations, and improve user experience. Active […]

By Rahul ChakravartiRead More →