Grafana dashboard for API test data

Docker Grafana Postgres FastAPI

TODO

2023-01-14 05:01:26

  • Moving the FastAPI application inside app directory inside src
  • Write grafana initialization script
    • Setting up data sources
    • Basic panels (e.g., Introductory readme and stuff)
    • Installing a dashboard
  • Setting up the API call scheduler
  • Write Base CRUD class
  • Optimizing the endpoint
  • One table just containing all endpoint informations

Setting up the project (for Contributors)

# Clone the project
git clone git@github.com:Mukhopadhyay/grafana-api-test-dashboard.git

# Create the development virtual environment
python3 -m venv venv_dev

# Installing the dev dependencies
pip3 install -r requirements.dev.txt

# Installing the pre-commit hooks
pre-commit install

Temp table query:

CREATE TABLE
  public.endpoint (
    id uuid NOT NULL DEFAULT uuid_generate_v4(),
    created_at timestamp without time zone NOT NULL,
    name character varying NOT NULL,
    url character varying NOT NULL,
    elapsed numeric NOT NULL,
    version character varying NULL,
    category character varying NOT NULL,
    status_code integer NOT NULL,
    content_length integer NOT NULL
  );

ALTER TABLE
  public.endpoint
ADD
  CONSTRAINT endpoint_pkey PRIMARY KEY (id)