fromedwin / monitor

No code Prometheus setup for instance down monitoring
https://fromedwin.com
MIT License
1 stars 1 forks source link
metrics monitor monitoring monitoring-tool

Status From Edwin

This project provide an out of the box highly opinionated implementation of open-source monitoring tools, unified as a no code web interface.

Metrics are focused on availability, with future integration for performance, statistics, budget, and energy consumption.

Build action badge Documentation Status License: MIT

Installation

python3 -m venv apps
source apps/bin/activate

# psycopg2 lib Apple silicon specific
# brew install openssl
# export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/opt/openssl/lib

pip install -r django/requirements.txt

# Generate random SECRET_KEY and inject in .env file
SECRET_KEY=$(LC_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c 32)
# Or 
# SECRET_KEY=$(openssl rand -base64 64)

echo "SECRET_KEY=$SECRET_KEY" >> .env

# For development, add DEBUG=1 in .env file
# echo "DEBUG=1" >> .env

# For a first setup, run migrate and createsuperuser
python django/manage.py migrate
# Create superuser to access django admin panel (migrate first for the first setup)
python django/manage.py createsuperuser

python django/manage.py tailwind install

Developpment mode

Django development server

Start the development server by running the following command:

python django/manage.py runserver

To enable styling and hot-reload, run in parallel the following command:

python django/manage.py tailwind start

Running documentation

cd ./sphinx
pip install -r requirements.txt
sphinx-reload ../docs

Env variables

DATABASE_URL: (optional) URL to access database

Dependencies