$ sudo apt install -y npm
$ sudo apt install -y nodejs-legacyeth-netstats is the tool providing a monitoring site (frontend) for private network stats
Build eth-netstats as follows
$ git clone https://github.com/cubedro/eth-netstats
$ cd eth-netstats
$ npm install
$ sudo npm install -g grunt-cli
$ gruntRun eth-netstats as follows, for details check netstats.sh script
$ PORT=<chosen_port:default 3000> WS_SECRET=<chosen_secret> npm startMonitoring page can be reached like below, no information is presented until eth-net-intelligence-api is run
http://localhost:3000
eth-net-intelligence-api contains processes that communicate with the ethereum client using RPC and push the data to the monitoring site via websockets.
Build eth-net-intelligence-api as follows
$ git clone https://github.com/cubedro/eth-net-intelligence-api
$ cd eth-net-intelligence-api
$ npm install
$ sudo npm install -g pm2Run eth-net-intelligence-api as follows, for details check netintapi.sh script and app.json files under config directory
$ pm2 start ./app.jsonTo check logs
$ pm2 logs node-appTo stop
$ pm2 stop ./app.json