perfsonar / graphs

Graphs that display perfSONAR measurement data (Formerly the serviceTest package)
Apache License 2.0
5 stars 1 forks source link

perfSONAR Graphs

Graphs that show perfSONAR active measurement results taken from a measurement archive. In some cases they will also suplement the graphs with informaion from the Lookup Service to provide additional context in debugging. Graphs are capable of showing data ranging from throughput, loss, one-way delay, and much more.

Building the Javascript

Currently the Javascript is packged using webpack and the resulting bundle.js files are kept in this repo. To build those:

# start a unibuild container
wget https://raw.githubusercontent.com/perfsonar/unibuild/main/docker-envs/docker-compose.yml

# cd to react dir
cd graphs/perfsonar-graphs/react
docker compose up -d el7

# remove old build files
make clean-js

# enable devtoolset-3 for building on CentOS 6 only
npm install --force   

# run linter
make lint

# build using webpack (production)
make webpack
# Altenatively run 'make dev' if you want console.log output to show up

# copy build files to where they need to be
make deploy

Getting the Code

You may checkout the code with the following command:

git clone --recursive https://github.com/perfsonar/graphs.git

Note the use of the --recursive option to ensure any submodule trees are included in the clone.

Building and Installing

To install the code on your system run:

make install

Packaging

You may create a source tarball of this code with the following:

make dist

Using the shared Submodule

This repository contains a git submodule to the perfSONAR shared repository. This submodule is used to access common perfSONAR libraries. You will find a number of symbolic links to these modules under lib. The use of a submodule has a few implications when working with the code in this repository: