- Running onomy node with REST API enabled
- Docker and docker-compose installed
- Python 3.8+
Clone repository
git clone https://github.com/dotneko/valmon.git
Configure PostgreSQL settings pg_settings_dev.env (from pg_settings_example.env)
Build and run PostgreSQL db with docker compose:
N.B. Following commands/scripts may require sudo
docker compose up --build
Confirm database table created with script db_select_all.sh
Python monitoring daemon located in ./monitor directory
Ensure REST API enabled for onomyd and check endpoint in ./onomy/config/app.toml
Configure settings in ./monitor/config.json (from ./monitor/config.json.example)
Install dependencies (optionally create virtual environment for installation):
pip install -r requirements.txt
# or
python -m pip install -r requirements.txt
Launch dockerized PostgreSQL if not already running
Launch daemon with script launch_daemon.sh