django-netjsongraph icon indicating copy to clipboard operation
django-netjsongraph copied to clipboard

Adding quality stats per link and per path

Open leonardomaccari opened this issue 9 years ago • 5 comments

I'd like to add some stats of the quality per link and per path. The steps should be:

  1. add memory to the db, so that an update does not erase previous data
  2. add a cron job so that the db is updated regularly (with django-kronos)
  3. plot the cost of a link with highstats
  4. add a form to choose a source and destination, and plot the cost of the chosen path

leonardomaccari avatar Dec 26 '15 09:12 leonardomaccari

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.

nemesifier avatar Dec 28 '15 21:12 nemesifier

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.

leonardomaccari avatar Dec 28 '15 22:12 leonardomaccari

If you consider topology data to be a NetJSON blob, that also could be stored in influxdb.

nemesifier avatar Dec 29 '15 11:12 nemesifier

@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

nemesifier avatar Mar 28 '17 16:03 nemesifier

Yes. @nemesisdesign : Will have a look at it.

rohithasrk avatar Mar 28 '17 16:03 rohithasrk