• Stars
    star
    283
  • Rank 143,054 (Top 3 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created about 8 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A web-based dashboard built on graphs and their metadata.

GraphDash

GraphDash is a web-based dashboard built on graphs and their metadata. For example, if you have two graphs in a directory:

$ cd default_graph_dir
$ ls
graph.svg graph2.svg

Then you can create two metadata files using YAML format, where you can configure how the graphs will be displayed:

$ cat graph.yaml
name: graph.svg
family: 'Category 1'
title: '*Real serious* graph'
text: |
    The description

$ cat graph2.yaml
name: graph2.svg
family: 'Category 2'
title: 'Another important graph'

You may then start the graph dashboard. You will get a nice web interface displaying your graphs, and a search box with autocompletion. You can easily navigate and share your graphs.

$ GraphDash --root .
* Running on http://0.0.0.0:5555/ (Press CTRL+C to quit)

Installation

Clone and install (in user space):

git clone https://github.com/AmadeusITGroup/graphdash.git
cd graphdash
pip install --user .

Or use the Python package:

pip install --user graphdash

Launch the webapp

For user-space installation, make sure your $PATH includes ~/.local/bin.

$ GraphDash -r default_graph_dir
* Running on http://0.0.0.0:5555/ (Press CTRL+C to quit)

The dashboard can be configured with a YAML config file and the -c/--conf option:

$ cat docs/graphdash.yaml
root: ../default_graph_dir
title: "Example of title ;)"
subtitle: "Example of subtitle"

$ GraphDash -c docs/graphdash.yaml
* Running on http://0.0.0.0:5555/ (Press CTRL+C to quit)

You can generate a template of configuration file:

$ GraphDash -C template.yaml

Serve with Gunicorn

If not already installed on your machine, install Gunicorn:

pip install --user gunicorn setproctitle  # on Fedora you may need to install libffi-devel before

Since you can import the webapp through graphdash:app, you can serve it with Gunicorn:

gunicorn -b 0.0.0.0:8888 --pid server.pid graphdash:app

The configuration file of the webapp can be set with the CONF environment variable. With Gunicorn, you can pass environment variables to the workers with --env:

gunicorn -b 0.0.0.0:8888 --pid server.pid --env CONF=docs/graphdash.yaml graphdash:app

But you should not use these commands yourself, that is what GraphDashManage is for!

GraphDashManage

GraphDashManage is used to start, stop, restart the instances of Gunicorn serving graphdash:app. It needs a configuration file in the current directory:

$ cat settings.sh
ALL_MODES=(
   ['prod']="docs/graphdash.yaml"
   ['test']="docs/graphdash.yaml"
)
ALL_PORTS=(
   ['prod']=1234
   ['test']=5678
)
WORKERS=3

Then you can manage multiple instances of GraphDash using Gunicorn with:

$ GraphDashManage start prod
[INFO] Listening at: http://0.0.0.0:1234
[INFO] Booting worker with pid: 30403
[INFO] Booting worker with pid: 30404
[INFO] Booting worker with pid: 30405

$ GraphDashManage start test
[INFO] Listening at: http://0.0.0.0:5678
...

You can generate a template of settings:

$ GraphDashManage template > template.sh # to be moved to settings.sh

Webapp configuration file

Possible entries (everything is optional):

  • root: the root directory of the graphs
  • families: path to the families metadata file (optional)
  • title: the title of the webapp
  • subtitle: the subtitle of the webapp
  • placeholder: the default text in the search field
  • header: an optional message at the top (markdown syntax)
  • footer: an optional message at the bottom (markdown syntax)
  • showfamilynumbers: a boolean to toggle family numbering (default is true)
  • showgraphnumbers: a boolean to toggle graph numbering (default is true)
  • theme: change css theme (default is dark)
  • keep: the proportion of common words kept for autocompletion
  • logfile: change default log file of the webapp
  • raw: when loading, look for all graphs and ignore metadata
  • verbose: a boolean indicating verbosity when loading application
  • debug: debug mode (enable Grunt livereload, enable Flask debug mode)
  • headless: headless mode (only search is available, no page is rendered)
  • port: when launched with Flask development server only, port

Graph metadata

Several attributes are supported:

  • name: the path to the graph
  • title: title of the graph, recommended for display purposes (markdown syntax)
  • family: the subsection in which the graph is
  • index: an optional list of keywords describing the graph (useful for search feature)
  • text: an optional description of the graph (markdown syntax)
  • pretext: an optional message appearing before the graph (markdown syntax)
  • file: optional path to the raw data
  • export: optional path to the exportable graph (for example, a PNG file)
  • rank: integer, optional value used to change graphs order (default uses titles)
  • showtitle: a boolean to toggle title display for the graph (default is false)
  • labels: a list of labels (like 'new') which will be rendered in the UI as colored circles
  • other: other metadata not used by GraphDash, but may be needed by other things reading the metadata

Note that if the name attribute is missing, the graph will not be shown and the text will be displayed anyway, like a blog entry.

Family metadata

You may put a .FAMILIES.yaml file at the root of the graph directory. This file may contain metadata for families. It should be a YAML list:

- family: chairs
  rank : 0
- family: tables
  rank : 1
  text: This is a description
  alias: This text will appear instead of "tables"
  labels: new

Each element of the list should be a dict containing:

  • family: the family considered
  • rank: integer, optional value used to change families order (default uses family name)
  • text: an optional description of the family (markdown syntax)
  • alias: an optional name who may be longer than the one in the url (useful to build nice urls)
  • labels: a list of labels (like new) which will be rendered in the UI as colored circles

Available labels are new, update, bugfix, warning, error, ongoing, obsolete. You may give other labels which will be rendered with defaults colors. For customization, you may specify your own labels with a dict syntax:

labels:
- name: newlabel
  color: white
  text_color: black
  text: "NEW LABEL"
  tooltip: null

Development

If you wish to contribute, you need Grunt to generate new css/js files from sass/coffee source files.

npm install --no-bin-links # may need to repeat
grunt

Debugging can be made with source map files for browser supporting them in their debugging tools. If not, the Gruntfile.js enables an option to generate non-minified assets.

grunt --dev

With the debug mode enabled, Grunt will use the livereload mechanism to reload the browser if any file has changed (and Flask debug mode will reload the server as well).

GraphDash --debug & # or python -m graphdash
grunt watch

If you used Gunicorn with a PID file, Grunt will automatically reload it if any Python files change.

gunicorn -b 0.0.0.0:8888 --pid server.pid graphdash:app &
grunt watch

You can use tox build packages and run tests.

tox

More Repositories

1

Redis-Operator

Redis Operator creates/configures/manages Redis clusters atop Kubernetes
Go
165
star
2

sonar-stash

Stash (BitBucket) plugin, a pull-request decorator which allows to integrate SonarQube violations directly into your pull-request
Java
165
star
3

Moire-Pattern-Detection

Jupyter Notebook
90
star
4

JumpSSH

Python module to run commands on remote servers through one or more jump servers.
Python
76
star
5

tansu

tansu is a lightweight, push-based state management library. It borrows the ideas and APIs originally designed and implemented by Svelte stores.
TypeScript
68
star
6

HttpSessionReplacer

Store JEE Servlet HttpSessions in Redis
Java
49
star
7

kanary

Go
40
star
8

otter

The Otter project is a highly modular framework whose goal is to provide a common platform to accelerate and facilitate the development of runtime customizable Angular based Web Applications
TypeScript
39
star
9

kubervisor

The Kubervisor allow you to control which pods should receive traffic or not based on anomaly detection.It is a new kind of health check system.
Go
35
star
10

NTP-Proxy

Two programs, which can be used for OS/application leap second immunity verification.
C
27
star
11

cPMML

cPMML is C++ library for scoring machine learning models serialized with the Predictive Model Markup Language (PMML)
C++
25
star
12

workflow-controller

Kubernetes workflow controller
Go
23
star
13

Kubernetes-Kafka-Connect-Operator

A kubernetes operator to deploy and auto-scale KafkaConnect Application.
Go
19
star
14

Assistive-Webdriver

Assistive-Webdriver is a tool to automate end-to-end web application tests with a screen reader.
TypeScript
19
star
15

cpubench1A

cpubench1a is a CPU benchmark program suitable to evaluate the CPU capacity of physical or virtual machines.
Go
15
star
16

amc

Collection of high performance C++ containers that can be chosen as drop-in replacements for std::vector and std::set
C++
13
star
17

protractor-to-playwright

Command line tool that automatically migrates tests from protractor to playwright.
TypeScript
13
star
18

CoreDumper

Clone of https://code.google.com/p/google-coredumper/ with enhancements by Amadeus
C
11
star
19

opsmancombo

Python class for MongoDB Ops Manager and Ansible module
Python
10
star
20

Colors-for-All

Colors-for-all enables you to easily check color contrasts and WCAG compliance (AA or AAA levels as defined by W3C) between specific colors in one shot ! This online application is available for UX/UI designers or any other people involved in digital accessibility.
TypeScript
8
star
21

kassette

kassette is a development server, used mainly for testing, which proxies requests and is able to easily manage local mocks.
TypeScript
8
star
22

unbreakable-branches-jenkins

Java
6
star
23

cloud-cost-allocation

Python
5
star
24

H2O-to-PMML

Java
5
star
25

AutoSSL

Automated SSL certificates monitoring, renewal and deployment from blueprint
Python
5
star
26

ngx-prefetch

Angular builder for prefetching resources before loading the application
TypeScript
5
star
27

Formula

C++
5
star
28

sonar-coverage-evolution

Report decreasing coverage to SonarQube
Java
5
star
29

oscad2

The Open Source Compliance Advisor is the interactive version of the OSLiC for enabling its requestors to use open source software compliantly.
SCSS
5
star
30

ContainerCoreInterceptor

Core_interceptor can be used to handle core dumps in a dockerized environment. It listens on the local docker daemon socket for events. When it receives a die event it checks if the dead container produced any core dump or java heap dump.
Go
5
star
31

asciidoctor-extension-apidoc

AsciidoctorJ inline macro for linking to Javadoc
Java
4
star
32

Accessibility.js

JavaScript
4
star
33

python-memoize

Project based on django-memoize. It is a memoization implementation technique used to cache functions' results with persistent storage in Redis.
Python
4
star
34

Anomaly-Detection-with-Gaussian-Mixtures

Scala
3
star
35

RedisCache

Python function decorator to cache the result in a Redis server.
Python
3
star
36

Time-Series-Library-with-Spark

Scala
3
star
37

xjs

XJS: XML template language for typescript applications
TypeScript
3
star
38

python-jiffybox

API wrapper around the domainFACTORY JiffyBox API
Python
3
star
39

workflow-cps-global-lib-http-plugin

The goal of this plugin is to provide a way to retrieve shared libraries via HTTP(s) when referenced using the @Library declaration in a Jenkinsfile
Java
3
star
40

Confluence-Jira-Macro-customfields-workaround

Java
2
star
41

monitoring-plugins

Set of reusable monitoring plugins for Nagios/Icinga etc.
Perl
2
star
42

Interactive-Video-Player

An interactive video player based on Video.js
TypeScript
2
star
43

eclipse-toml-editor

A project transferred to Eclipse Foundation
Java
2
star
44

Vidocq

A web-based UI to explore MongoDB
TypeScript
2
star
45

python-ptypes

Persistent types: storing objects in memory-mapped files without serializing
Python
2
star
46

Postman-Orchestrator

Java
1
star
47

Elastic-Scaling

Scala
1
star
48

pyctlmbatchtoolbox

Set of tools used to interact with Control-M
Python
1
star
49

jenkins-opentracing-plugin

Jenkins OpenTracing Plugin
Java
1
star
50

miniplanes

Go
1
star
51

odyssey-reactive-messaging

Java
1
star
52

collectd-plugins

Set of reusable plugins for collectd
Perl
1
star
53

bdist_pyinstaller

A side-car distutils command to automate creation of the pyinstaller packages in a non-intrusive way
Python
1
star
54

Checkout-Experience-iOS

Amadeus Payment Checkout Experience
Swift
1
star
55

ssh-key-generator

VSCode Extension facilitating the generation and the deployment of SSH keys
TypeScript
1
star
56

Amadeus-MetaConnect-Flight-Preselection

Google Tag Manager tag for flight preselection in Amadeus MetaConnect
Smarty
1
star
57

ivy

typescript template library to build advanced web applications : https://amadeusitgroup.github.io/ivy
TypeScript
1
star
58

keptn-splunk-sli-provider

Keptn-service to integrate Splunk in Keptn as the source for the Service Level Indicators and as a monitoring tool.
Go
1
star