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)
|