Skip to content
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
@leonardomaccari

Description

@leonardomaccari

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

Activity

nemesifier

nemesifier commented on Dec 28, 2015

@nemesifier
Member

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

leonardomaccari commented on Dec 28, 2015

@leonardomaccari
Author

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

nemesifier commented on Dec 29, 2015

@nemesifier
Member

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

nemesifier

nemesifier commented on Mar 28, 2017

@nemesifier
Member

@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

rohithasrk commented on Mar 28, 2017

@rohithasrk
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @leonardomaccari@nemesifier@rohithasrk

        Issue actions

          Adding quality stats per link and per path · Issue #2 · openwisp/django-netjsongraph