This is a Chia monitoring solution for people who need to run multiple harvesters on different hosts. It is based on Grafana (Data Visualization), Prometheus (Data Persistence & Query), and Mtail (Data Collector).
All these components support most popular OS such as Linux/Windows/MacOS.
中文用户可以参考视频:https://www.bilibili.com/video/BV1sQ4y1R741/
Check the following screenshot. It provides many useful numbers, and you can set your plot size (K32
by default) and Netspace Unit (It is increasing so fast!)
First, checkout this repo from the Github. In short, you need to install Grafana & Prometheus on your full node farmer host and install/copy mtail on all the hosts running harvesters.
-
Add Mtail default port 3903 to your inbound firewall rule
-
Go to https://github.com/google/mtail/releases download and unzip latest version (not earlier than 3.0.0 rc45)
-
Copy the mtail (.exe) binary file to the
data_collect
folder in the repo folder you checked out -
Copy the the
data_collect
folder to your Chia install folder. This is because of the script is using relative path. For Linux, it should be /your/path/to/chia-blockchain For Windows, the default path looks like: C:\Users\YOUR_USER_NAME\AppData\Local\chia-blockchain\app-1.1.5 -
Modify the wallet fingerprint in the run_mtail.sh / farmer_summary.bat !!!
-
Run
./run_mtail.sh
(Linux) /./run_mtail.bat
IN the data_collect folder (Windows needs to keep the two pop-up windows open). -
Open http://localhost:3903 you should see a primitive mtail website.
Note:
This requires you enabled Chia INFO level log.
Mtail needs some time to read through your log. If you want to speed up, try to delete the current debug.log.
-
Add Prometheus default port 9090 to your inbound firewall rule
-
Go to https://prometheus.io/download/ download right version based on your OS.
-
Unzip the file and open the folder
-
Copy and override the
prometheus.yml
by the one provided by this repo. -
Replace the harvester host ip by yours.
-
Run Prometheus. (You need to run this at the backend in the Linux)
-
Check the http://localhost:9090. You should see the Prometheus portal.
-
Add Grafana default port 3000 to your inbound firewall rule
-
Go to https://grafana.com/docs/grafana/latest/installation/ install right version based on your OS.
-
Follow the instruction on the Grafana website to run the service.
-
Use web browser open http://localhost:3000, you will see the Grafana portal
-
Create a new password for the admin (default username/password = admin/admin)
-
Create a new data source named as Chia, check the screenshot.
You are all set! Enjoy and give a star if you like this! Donate xch1adq8a7r5e2qkeyxgw0pml735efnsqaqk4uyyj926e4h0zg28faqsufq0k4