GithubHelp home page GithubHelp logo

luokery / chiamonitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ytx1991/chiamonitor

0.0 0.0 0.0 8.27 MB

An approach for monitoring multiple Chia harvester in one web app based dashboard

Shell 46.34% Batchfile 53.66%

chiamonitor's Introduction

ChiaMonitor

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/

Features

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!) Screenshot of the dashboard

How to Setup

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. Overall

Install Mtail on all the harvesters hosts (include main host if you run harvester on it)

  1. Add Mtail default port 3903 to your inbound firewall rule

  2. Go to https://github.com/google/mtail/releases download and unzip latest version (not earlier than 3.0.0 rc45)

  3. Copy the mtail (.exe) binary file to the data_collect folder in the repo folder you checked out

  4. 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

  5. Run ./run_mtail.sh (Linux) / ./run_mtail.bat IN the data_collect folder (Windows needs to keep the two pop-up windows open).

  6. 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.

Install Prometheus on the main host

  1. Add Prometheus default port 9090 to your inbound firewall rule

  2. Go to https://prometheus.io/download/ download right version based on your OS.

  3. Unzip the file and open the folder

  4. Copy and override the prometheus.yml by the one provided by this repo.

  5. Replace the harvester host ip by yours.

  6. Run Prometheus. (You need to run this at the backend in the Linux)

  7. Check the http://localhost:9090. You should see the Prometheus portal.

Install Grafana on the main host

  1. Add Grafana default port 3000 to your inbound firewall rule

  2. Go to https://grafana.com/docs/grafana/latest/installation/ install right version based on your OS.

  3. Follow the instruction on the Grafana website to run the service.

  4. Use web browser open http://localhost:3000, you will see the Grafana portal

  5. Create a new password for the admin (default username/password = admin/admin)

  6. Create a new data source named as Chia, check the screenshot. Screenshot of the datasource

  7. Import the dashboard json based on the language you like. Screenshot of the import

You are all set! Enjoy and give a star if you like this! Donate xch1adq8a7r5e2qkeyxgw0pml735efnsqaqk4uyyj926e4h0zg28faqsufq0k4

chiamonitor's People

Contributors

alx741 avatar rongou avatar ytx1991 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.