Skip to content

Parses the location of nodes that talk with your storj node and sends that information to influxdb

License

Notifications You must be signed in to change notification settings

geckogecko/storj-location-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

storj-location-parser

Parses the location of nodes that talk with your storj node and sends that information to influxdb

grafana_screenshot Download this grafana dashboard from: https://grafana.com/dashboards/2699

Requirements

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

Installation

  1. Install Influxdb and Grafana
  2. Clone this repo
  3. 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"
  1. set debug level of the storj-daemon to 3 or higher
  2. Create a database with the name of INFLUXDB_DATABASE in influxdb with:
influx
CREATE DATABASE renter_monitoring
  1. Create the same datasource in grafana
  2. Import the grafana dashboard from: https://grafana.com/dashboards/2699
  3. Run the script with: python storj-location-parser.py

About

Parses the location of nodes that talk with your storj node and sends that information to influxdb

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages