This repository was archived by the owner on Jun 27, 2020. It is now read-only.
This repository was archived by the owner on Jun 27, 2020. It is now read-only.
Adding quality stats per link and per path #2
Open
Description
I'd like to add some stats of the quality per link and per path. The steps should be:
- add memory to the db, so that an update does not erase previous data
- add a cron job so that the db is updated regularly (with django-kronos)
- plot the cost of a link with highstats
- add a form to choose a source and destination, and plot the cost of the chosen path
Activity
nemesifier commentedon Dec 28, 2015
If you want to try with this you should definitely do it in a separate module and not in django-netjsongraph itself, which aims to be lightweight, easy to install or integrate in larger projects.
The guys from wlan slovenia have implemented this with their data-stream package, I have developed a metrics module in nodeshot with influxdb.
The simplest thing you can do is to use django signals to send metrics to influxdb whenever links are updated, then you could create a grafana dashboard with the metrics and link to it from this app in someway.
leonardomaccari commentedon Dec 28, 2015
Yes, i realized it while trying, it would complicate a lot the app. I'm working on point 1, which can be useful anyway also for django_netjsongraph, so you can visualize not only the last topology but also past ones and then separate the rest.
nemesifier commentedon Dec 29, 2015
If you consider topology data to be a NetJSON blob, that also could be stored in influxdb.
nemesifier commentedon Mar 28, 2017
@rohithasrk, Leonardo did some work on the snapshot feature a while ago. Take a look at his fork when you have time: https://github.com/leonardomaccari/django-netjsongraph
rohithasrk commentedon Mar 28, 2017
Yes. @nemesisdesign : Will have a look at it.