This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12498|Reply: 1

Grafana+Prometheus+Windows Exporter monitors service performance metrics

[Copy link]
Posted on 5/31/2021 2:04:30 PM | | | |
When you need to manage many servers, you want to know the running status of each server, such as: CPU, memory, disk IO, network, etc., if it is too troublesome to log in to each server to view these indicators, and you cannot achieve real-time statistics function, you also need to send each server account and password to others.

Grafana+Prometheus+Windows Exporter is what helps us solve this problem, and through the online web interface, we can see that we can keep track of the server's health in time. The overall process is as follows:




Windows Exporter

Prometheus Exporter for Windows machines. Windows Server version 2008R2 and later, and desktop Windows version 7 and later are supported.

GitHub address:The hyperlink login is visible.

Download Address:The hyperlink login is visible.


Download "windows_exporter-0.16.0-amd64.exe" and double-click to run it, as shown in the figure below:



Access via browser:http://localhost:9182/metricsYou can see some metrics of the current server, as shown in the figure below:



Prometheus

Prometheus is a cloud computing foundation project, a system and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays results, and triggers alerts when specified conditions are observed. An open-source service monitoring system and time series database.

Download Address:The hyperlink login is visible.

After extraction, modify the "prometheus.yml" file under the program directory and configure it as follows:

Double-click "prometheus.exe" to run, as shown below:



Open ithttp://127.0.0.1:9090/targets, you can see the nodes collected by Prometheus, as shown in the figure below:



Grafana

Grafana is an open-source data visualization tool developed in Go language, which can do data monitoring and data statistics, with alarm functions. There are many companies that currently use Grafana, such as PayPal, eBay, Intel, etc. Supported time series databases such as InfluxDB, Prometheus, Elasticsearch, and Graphite.

Download Address:The hyperlink login is visible.

After the download is complete, go to the bin directory and double-click to run "grafana-server.exe", as shown in the figure below:




The browser opens the Grafana web panel at the address:http://localhost:3000/Account admin password admin, you need to set a new password for the first time. (omitted)



Add a Prometheus data source, as shown in the following image:



Add a dashboard

All dashboard addresses:The hyperlink login is visible.

The Windows Exporter dashboard recommends:

The hyperlink login is visible.
The hyperlink login is visible.


atImport via grafana.comIn the input box below, enter:10467to click the load button, as shown below:



Select the data source you just created, and when you're done, wait for Prometheus to fetch a certain amount of data from Windows Exporter, as shown below:



(End)




Previous:AWS Amazon.Runtime.Internal.HttpErrorResponseException
Next:CMD bat standardizes several methods to obtain the current system date, and adds 0
 Landlord| Posted on 5/31/2021 3:46:28 PM |
You can check the correctness of the configuration file with the following command:

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com