Git Product home page Git Product logo

visualization-framework's Introduction

This project is based on the create-react-app template.

Generic Setup

Installation Procedure

1. Clone the repository https://github.com/nuagenetworks/visualization-framework
2. Go inside the `visualization-framework` folder
3. Install all dependancies using `npm install` (it will take some time, please be patient)
4. Run the application using `npm run start` command.
5. Launch tests using `npm run test` command.

Visualization

1. Go to http://localhost:3000/dashboards/medals to see charts

Building your visualization app

- under construction

Nuage Networks specific setup

ElasticSearch CORS Setup

This project works with ElasticSearch directly from the Browser. In order for this software to access your ElasticSearch instance, you'll need to configure the ElasticSearch CORS setting to be open.

To do this, first locate your elasticsearch.yml file. In Ubuntu Linux, this file is located at /etc/elasticsearch/elasticsearch.yml. In this file, add the following lines:

http.cors.enabled: true
http.cors.allow-origin: "*"

This configuration allows any origin to access your ElasticSearch instance, which is fine for development but not recommended for production as it introduces a security vulnerability.

After editing this file, restart ElasticSearch.

sudo service elasticsearch restart

Installation Procedure

1. Clone the repository https://github.com/nuagenetworks/visualization-framework
2. Go inside the `visualization-framework` folder
3. Install all dependancies using `npm install` (it will take some time, please be patient)
4. Run the application using `npm run start` command.
5. Launch tests using `npm run test` command.

Settings

Here is a list of environment variable that can be set to configure the visualization framework:

* `REACT_APP_ELASTICSEARCH_HOST` (**required**) allows you to specify the Elastic Search server (ex: http://localhost:9200)
* `REACT_APP_VSD_API_ENDPOINT` allows to specify the VSD API endpoint (ex:https://vsd.com:8443/nuage/api/)

kitchenSink

$ curl http://localhost:9200/_cat/indices?pretty
yellow open nuage_event                    5 1 10224000 0 547.5mb 547.5mb
yellow open nuage_flow                     5 1 10224000 0   1.3gb   1.3gb
yellow open nuage_dpi_flowstats_2016_10_12 5 1  1846654 0 673.3mb 673.3mb

$ curl localhost:9200/nuage_dpi_flowstats_2016_10_12/_search?pretty
> Locate enterpriseName and sourceNSG (snsg)


| Name   |  Graph  |     parameters     |
|--------|:-------------:|------:|
| Top 5 apps          | Vertical Bar Chart   | startTime=now-90d                                                 |
| Top 5 apps          | Horizontal Bar Chart | startTime=now-90d                                                 |
| Top 5 apps          | Table                | startTime=now-90d                                                 |
| Top 5 apps          | Pie Chart            | startTime=now-90d                                                 |
| Top 5 apps          | Donut Chart          | startTime=now-90d                                                 |
| Flows per domain    | Chord diagram        | startTime=now-90d                                                 |
| Flows per domain    | Chord diagram        | startTime=now-90d                                                 |
| Effective Score     | Simple text Graph    | startTime=now-90d                                                 |
| ACL Hits vs Time    | Line Graph           | startTime=now-90d                                                 |
| Multi-line Example  | Line Graph           | startTime=now-90d&enterpriseName=test_org&domainName=chord_domain |

URL Examples:

visualization-framework's People

Contributors

bharat-mukheja avatar chris-serafin avatar curran avatar divyahc avatar natabal avatar nxanil avatar rajeshnokia avatar ronakmshah avatar sayaji15 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.