Giter Club home page Giter Club logo

minerator-metrics's Introduction

minerator-metrics

Visualisations for Minerator using Prometheus/Grafana.

Screenshots

Device Dashboard Screenshot

Overview Dashboard Screenshot

Quick Setup for Ubuntu 18.04 rigs running minerator

Quick setup for running on Ubuntu 18.04 rigs running minerator:

sudo apt-get install git
git clone https://github.com/pigfrown/minerator-metrics
cd minerator-metrics
sudo su
./setup.sh

If you can't access grafana remotely you need to also run ./setup_network.sh (as root). This script will enable and configure the ubuntu firewall to allow remote connections to grafana/prometheus.

Note: this will automatically start prometheus/grafana/minerator-metrics on boot. disable the relevant systemd services if you don't want this (see script).

For other systems, check the scripts to see what needs installing/configuring.

If you want to run prometheus/grafana on a seperate server you need to manually install prometheus and grafana and edit prometheus.yml to point to your minerator rig(s). minerator-metrics.py needs to be run on each minerator rig.

Confirm Prometheus Installed

Prometheus is only available from the minerator system.

Goto localhost:9090 from your minerator system. You should see Prometheus web interface. Go to Status->Targets and you should see "minerator" target, and it should be up.

Grafana Configuration

Grafana should be up on port 3000 on your minerator box.

Access grafana and log in with default username "admin", password "admin" and change your password.

Add Prometheus Datasource

  • Click "Add data source", select "Prometheus".
  • set URL to "http://localhost:9090".
  • Ensure name is "local_prometheus".
  • Click "Save and Test" and Prometheus should be configured with grafana

Alternativly you can use the setup_grafana.sh script to create ths datasource.

Import Dashboards

  • On the left hand side of Grafana, click the "+" symbol
  • Select Import Dashboard
  • make sure you select the prometheus data source that was created earlier
  • Click "Upload .json File" and select Device.json from minerator-metrics/dashboards
  • Repeat process for Core, Phase, Sysmon, and MineratorOverview dashboards

Setup for other systems

Check the scripts to see what needs installing/configuring.

If you want to run prometheus/grafana on a seperate server you need to manually install prometheus and grafana and edit prometheus.yml to point to your minerator rig(s). minerator-metrics.py needs to be run on each minerator rig.

Multiple rigs

No dashboard for this, but metrics have a "rig" label that could be used to create one.

Troubleshooting

Check prometheus, grafana-server, and minerator-metrics systemd services are all running. Check logs (journalctl -u) for the above services

minerator-metrics's People

Contributors

pigfrown avatar

Watchers

 avatar

Forkers

d3vk0n

minerator-metrics's Issues

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.