Parses the location of nodes that talk with your storj node and sends that information to influxdb
Download this grafana dashboard from: https://grafana.com/dashboards/2699
python -m pip install Geohash
python -m pip install influxdb
Geohash: https://github.com/vinsci/geohash Influxdb python client: https://github.com/influxdata/influxdb-python
- Install Influxdb and Grafana
- Clone this repo
- Change the configuration of
storj-location-parser.py
#The nodeID to be monitored
NODE_ID = "23c20fc08ec5c1c23696b46daf0600d1c58170bc"
#Path to your storj log folder
LOG_FOLDER_PATH = "/root/storj/logs/"
#INFLUXDB details
INFLUXDB_DATABASE = "renter_monitoring"
INFLUXDB_ADDRESS = "192.168.0.15"
INFLUXDB_PORT = 8086
INFLUXDB_ADMIN = "root"
INFLUXDB_PASSWORD = "root"
- set debug level of the storj-daemon to 3 or higher
- Create a database with the name of
INFLUXDB_DATABASE
in influxdb with:
influx
CREATE DATABASE renter_monitoring
- Create the same datasource in grafana
- Import the grafana dashboard from: https://grafana.com/dashboards/2699
- Run the script with:
python storj-location-parser.py