skywire-node-monitor
Skywire Node Monitor
This program store the number of available Skywire nodes in world over the time.
Installation
You have to install crystal for your operating system: https://crystal-lang.org/docs/installation/
Set environment variables
export APP_DB_HOST=localhost
export APP_DB_NAME=test
export APP_DB_PASSWORD=xxxxxxxxxx
export APP_DB_PORT=28015
export APP_DB_TABLE_NAME=nodes_metrics
export APP_DB_USER=skywirenode
export APP_DISCOVERY_QUERY="/conn/getAll"
export APP_DISCOVERY_URI="http://discovery.skycoin.com:8001"
export APP_TICK_TIME_SECOND=300
Usage
shards build --production ./bin/skywire-node-monitor
Development
Launch RethinkDB administration tool
First of all, you need a RethinkDB datastore: https://rethinkdb.com/docs/install/.
You can deploy an instance on cloud provider like AWS or Compose: https://rethinkdb.com/docs/paas/
-
With docker
replace rethinkdb by your docker instance name
xdg-open "http://$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' rethinkdb):8080"
-
With a local RethinkDB instance
xdg-open "http://localhost:8080"
-
With a remote instance of RethinkDB
xdg-open "https://my.domain.com:8080"
Configure the database
r.db('rethinkdb').table('users').insert({id: 'skywirenode', password: 'xxxxxxxxxxxxxxxxxxxxxxx'});
r.dbCreate('skywirenode_production');
r.db('skywirenode_production').grant('skywirenode', {read: true, write: true, config: true});
Contributing
- Fork it (https://github.com/fenicks/skywire-node-monitor/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- fenicks Christian Kakesa - creator, maintainer
Repository
skywire-node-monitor
Owner
Statistic
- 1
- 1
- 3
- 0
- 2
- over 4 years ago
- October 23, 2018
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 20:03:18 GMT
Languages