/team-dstl-2

DSTL-2

Primary LanguagePython

team-dstl-2

TIDE HACKATHON 2023, Warsaw, Poland

Analytics Dashboard for Interoperability Challenge

Tidepedia Page

The architecture document can be found on the team tidepedia page.

https://tide.act.nato.int/mediawiki/tidepedia/index.php/Team_1118

Introduction

The architecture consists of two main components:

  1. Simple Editable Query EXecutor (SEQX): A Flask app which allows a stakeholder to create pertinent queries relating to interoperability. Send HTTP API requests to the Grafana API to create new dashboard panels.
  2. Grafana Dashboard: A dashboard interface for presenting the query results in a flexible manner in real-time.

Alt text

Spinning up with docker compose

To start the program go to the root directory of the repo and run:

$ cd <repo root dir>
$ docker compose up --build

Please see docker-compose.yml for more details.

Accessing the Flask Webapp and Grafana

Open a web browser. To access the Simple Editable Query EXecutor (SEQX) go to:

localhost:5000/

When operating the query creator follow the links on the main page to for the information you require.

Alt text

To access the dashboard on Grafana go to:

localhost:3000/

You will need to log in to grafana using the default login below:

Username:

admin

Password

admin

Alt text

You will then be asked to update the password, you must set it to:

qwerty

Using the Grafana dashboard

Use the menu on the left-hand side to show all dashboards. Click on the dashboard 'Dashboard_for_Interoperability_dstl-2'. Alt text

In the dashboard, you will see the data panels. Alt text

Each data panel can be edited, changing the way the data is displayed etc. Alt text

Spin Down with docker compose

To stop the program cleanly please:

  • In the terminal execute the below commands
  • $ cd <repo root dir>
    $ docker compose down
    
  • Close all relevant instances of the terminal
  • Change the Postgres DB configuration details

    To change the configurations to access the postgres database, edit the file:

    <repo_root_dir>/grafana/datasources/postgres_ds.yml
    

    you will see relevant fields to edit.