github.com/beyonderyue/gochain/v3@v3.3.6-0.20200509024509-b25a97312b8c/monitoring.md (about) 1 ## How to configure private cluster monitoring 2 # netstat 3 ``` 4 docker run -d -p 80:80 --name netstats -e PORT=80 -e WS_SECRET=SELECTED_SECRET 5 gochain/netstats 6 ``` 7 8 # net-intelligence-api 9 1. Create app.json file with following content(one node example): 10 ``` 11 [ 12 { 13 "name" : "node-app", 14 "script" : "app.js", 15 "log_date_format" : "YYYY-MM-DD HH:mm Z", 16 "merge_logs" : false, 17 "watch" : false, 18 "max_restarts" : 10, 19 "exec_interpreter" : "node", 20 "exec_mode" : "fork_mode", 21 "env": 22 { 23 "NODE_ENV" : "test", 24 "RPC_HOST" : "RPC_HOST_OF_NODE", 25 "RPC_PORT" : "8545", 26 "INSTANCE_NAME" : "node1", 27 "CONTACT_DETAILS" : "", 28 "WS_SERVER" : "WS_SERVER_URL", 29 "WS_SECRET" : "WS_SECRET", 30 "VERBOSITY" : 2 31 } 32 }, 33 ] 34 ``` 35 36 Where WS_SECRET is a secret which you use to launch netstat and WS_SERVER is a netstats address (ie http://localhost ) 37 and 38 ``` 39 docker run -d --net=host --name net-intelligence -v $PWD/app.json:/home/ethnetintel/eth-net-intelligence-api/app.json gochain/net-intelligence-api 40 ```