Git Product home page Git Product logo

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, binary file included).

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

In short, you need to install Grafana & Prometheus on your full node farmer host and install/copy mtail on all the hosts running harvesters.

On the full node farmer host

This tutorial will not include how to install Grafana & Prometheus, Google is your friend. One tip is to make sure your port 3000 (Grafana), 9090 (Prometheus), and 3903 (Mtail) can be accessed by others.

After you installed Grafana & Prometheus, modify prometheus.yml in the package. Replace the harvester host ip by yours. Copy prometheus.yml to your Prometheus path and run Grafana & Prometheus.

On the harvestor hosts

Check out the repo on your hosts and run ./run_mtail.sh. That's it.

Note: if your Chia is not install in ~/ (home directory) you need to modify run_mtail.sh with your Chia install path. Make sure all the run_mtail.sh and mtail have execution permission (use chmod command). The mtail version has to be 3.0.0 rc45.

Import Dashboard in Grafana

I made both English (grafana_dashboard_en.json) and Chinese (grafana_dashboard_zh.json) versions of the dashboard. You can import them in Grafana. To open Grafana, use a browser to access your farmer host, e.g. 192.168.0.1:3000.

After a simple setup you should be able to add data source and import JSON dashboard. It's very straightforward, here are some screenshots.

Datasource steup Screenshot of the datasource

Import Dashboard JSON Screenshot of the import

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

chiamonitor's People

Contributors

rongou avatar ytx1991 avatar

Watchers

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