Server to collect DHT views from yggdrasil nodes and store in a data base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
R4SAS 8897b48fc9 update files, add map and few more scripts 2 years ago
api update files, add map and few more scripts 2 years ago
.gitignore add importer from yggcrawl, update template 5 years ago
LICENSE Initial commit 6 years ago
README.md update files, add map and few more scripts 2 years ago
api.png Add files via upload 6 years ago
pgsql.sql add pgsql database structure 5 years ago
requirements.txt correction updates, make it usable 5 years ago
ygg-crawl.sh update files, add map and few more scripts 2 years ago
yggapi.service update files, add map and few more scripts 2 years ago

README.md

Yggdrasil-monitor

Yggdrasil-monitor provides both a web interface and an api. The web interface is used to see some basic stats on the data has collected by crawler and the API provides raw data in JSON format.

Install & Setup

Install the following python packages either via your package manager or Pip:

flask  
flask_restful  
psycopg2  

Configure niflheim-api.py to use the Postgres databse you setup for vserv.py.

So open niflheim-api.py:

DB_PASSWORD = "password"
DB_USER = "yggindex"
DB_NAME = "yggindex"
DB_HOST = "localhost"

Make sure the above matches what you have in the crawler.

The API will startup on port 3000 and accept all ipv6 connections if you want to change this edit the last line:

app.run(host='::', port=3000)

Accessing the API data:

http://exmaple.com:3000/current  

Add yggapi.services to systemd.