Articles Monitoring Windows Server

Set Up Your Own Monitoring System with Windows Server!

Let’s start by outlining the general steps for setting up a monitoring system using Prometheus, Grafana, and WMI Exporter on Windows Server. Keep in mind that technologies and versions may change over time, so it’s important to refer to the most up-to-date documentation and resources.

  1. Define Requirements:
  • Determine which version of Windows Server you will use.
  • Download the latest versions of Prometheus and Grafana.
  • Download the WMI Exporter.

2.Prometheus Installation:

  • Create a directory, e.g., ‘C:\Monitoring\prometheus’, and extract the downloaded .zip file here.
Dizin Belirle
  • Create a configuration file named ‘prometheus.yml’.
  • In ‘prometheus.yml’, define your targets (your Windows Servers) and the metrics you want to monitor. Here, we’re defining ‘localhost:9182’ to collect metrics from our existing server. We’ll install the WMI Exporter in later steps.
  • Example ‘prometheus.yml’ configuration:
# Global config
scrape_interval: 15s
evaluation_interval: 15s

- job_name: "prometheus"
- targets: ["localhost:9090"]

- job_name: "WMI_Exporter"
- targets: ["localhost:9182"]
  • Start Prometheus by running the following command in the relevant directory:
prometheus.exe --config.file=prometheus.yml
prometheus başlatma işlemi
prometheus initialization process
Prometheus’un web arayüzü (localhost:9090)
Prometheus’ web interface (localhost:9090)
  • You can access the Prometheus interface by opening this address in a web browser.

3.WMI Exporter Installation:

  • Run the ‘wmi_exporter.exe’ file. (You might encounter an unknown publisher warning; proceed by selecting “Run” anyway.)
  • To verify that ‘wmi_exporter.exe’ is running, open your browser and navigate to: http://localhost:9182.
  • Configure the WMI Exporter. This configuration determines which WMI queries to run and which metrics to collect.

4. Grafana Installation:


Run the downloaded ‘.exe’ file and follow the installation steps:

Grafana Setup
Grafana Setup

Proceed through the setup by clicking ‘Next’.

Accept the license agreement and continue by clicking ‘Next’.

Complete the installation by clicking ‘Install’.

Finish the installation by clicking ‘Finish’.

  • Access the Grafana interface using a web browser at ‘localhost:3000’.
grafana interface
  • During the initial login, use the default credentials: Username: ‘admin’, Password: (set a password of your choice).
    change default password

    Log in to Grafana, and add a data source. Prometheus will be the database source to transfer data to Grafana.

grafana web interface
  • Log in to Grafana, and add a data source. Prometheus will be the database source to transfer data to Grafana.
  • Log in to Grafana, and add a data source. Prometheus will be the database source to transfer data to Grafana.

  • ‘Save & test’ diyerek ekleme işlemini bitiriyoruz.

To summarize the steps:

  • We completed the setup and configuration of Prometheus to create a database to store metrics received from the WMI Exporter.
  • We installed the WMI Exporter, enabling us to collect metrics from our Windows server.
  • Grafana installation was completed to visualize the metrics obtained from Prometheus.

For visualization, proceed to the Grafana website.

    • Select a suitable theme, navigate to ‘Dashboards’, click ‘New/Import’, and import the desired dashboard using its ID.
  • On the screen that comes up, we enter the theme ID in the ‘Import via’ section and select ‘Load’.
Tema Yükleme İşlemi
  • The database ‘Prometheus’ is selected and the ‘import’ option is selected.
Tema Yükleme İşlemi- Veri tabanı seçimi
Theme Installation Process — Database selection
  • As a result, we have completed the monitoring process;

Congratulations on following through these steps patiently. Thank you!

Herhangi bir sorunuz veya eklemek istediğiniz detaylar varsa bana yazmaktan çekinmeyin.

Leave a Reply

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