Giter Site home page Giter Site logo

gridcoin_monitoring's Introduction

Gridcoin monitoring

Read gridcoin network info and export them into cacti format

How to use

See https://steemit.com/gridcoin/@sau412/gridcoin-network-monitoring-with-cacti

Here is copy of steemit article:

Introduction

Sometimes you want to know if something interesting happens in Gridcoin network. Here is instruction how to create graphs for interesting parameters with cacti.

Requirements

How to setup

Script

Copy get_gridcoin_info_cli.php to your cacti scripts folder, for my ubuntu it is:

/usr/share/cacti/site/scripts/

And set your gridcoin folder variable in get_gridcoin_info_cli.php. Also your gridcoin folder should be accessible for user www-data.

Cacti

Cacti is RRDTool-based Graphing Solution. In simple words it can draw graphs. Usually it draw interface load, CPU load, user count. Now we add Gridcoin network stats here.

Adding data input

  • Data collection -> Data input methods
  • Click 'New' (or plus in right top corner)
  • Name 'Get gridcoin network info'
  • Input type Script/Command
  • Command 'php <path_cacti>/get_gridcoin_info.php'
  • Click 'Save'
  • Add output fields: 'blocks', 'diff', 'moneysupply', 'netgrcweight' with friendly names

Adding data source template

  • Templates -> New (or plus in right top corner)
  • Name 'Gridcoin - Blocks'
  • Data input method 'Get gridcoin network info'
  • Data source type 'GAUGE' for difficulty and net weight, 'COUNTER' for blocks and money supply.
  • Internal Data Source Name 'blocks'
  • Click 'Create'
  • Set 'Output field' to 'blocks'
  • Click 'Save'
  • Create data sources for 'diff', 'moneysupply', 'netgrcweight' is the same way

Adding graph template

  • Templates -> Graph
  • Set name 'Gridcoin - Blocks'
  • Set title 'Gridcoin - Blocks'
  • Click 'Create'
  • Add Graph Template Items on the top
  • Set data source 'Gridcoin - Blocks'
  • Set color, line or area you want
  • Click 'Create'
  • Create grapth templates for 'diff', 'moneysupply', 'netgrcweight' is the same way

Adding graphs

  • Create -> New graphs
  • Select 'Gridcoin - Blocks' and click 'Create'
  • Select 'Gridcoin - Difficulty' and click 'Create'
  • Select 'Gridcoin - Money supply' and click 'Create'
  • Select 'Gridcoin - Net weight' and click 'Create'
  • Done.

View graphs

Open 'Graphs' tap on the top. After 10-20 minutes first strokes should appear on the graphs. In day or two you can open 'Graphs' tab to view your pretty graphs.

Notes:

  • Money supply currently not changing. I don't know what exactly it means.
  • In blocks graph you see milliblocks per second:)

That's all! Thanks for reading.

gridcoin_monitoring's People

Contributors

sau412 avatar

Watchers

James Cloos 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.