Copy .env.example to .env and configure:
# Application
SECRET_KEY=change-this-in-production
TIMEZONE=Europe/Rome
# Email (SMTP) - optional
MAIL_SERVER=smtp.office365.com
MAIL_PORT=587
MAIL_USE_TLS=true
MAIL_USERNAME=sender@domain.com
MAIL_PASSWORD=your_password
MAIL_DEFAULT_SENDER=noreply@domain.com
# Retention (days)
LOG_RETENTION_DAYS=30
EMAIL_LOG_RETENTION_DAYS=90
RESOLVED_ERRORS_RETENTION_DAYS=60By default, only SQLite is available. Edit requirements.txt and uncomment the drivers you need:
# oracledb>=2.0.0 # Oracle
# psycopg2-binary>=2.9.0 # PostgreSQL
# pymysql>=1.1.0 # MySQL / MariaDB
# pymssql>=2.2.0 # SQL Server
# JPype1==1.5.1 # IBM i (AS/400) - requires JavaThen restart the application.
| Database | Python Library | Notes |
|---|---|---|
| SQLite | (built-in) | No installation required |
| Oracle | oracledb |
Thin mode, no Oracle Client needed |
| PostgreSQL | psycopg2-binary |
|
| MySQL/MariaDB | pymysql |
|
| SQL Server | pymssql |
|
| IBM i (AS/400) | JPype1 + JT400 |
Requires Java 8+, see ibmi-driver.md |
The database type dropdown only shows drivers with installed libraries.
Connections are managed through the web UI:
- Go to Connessioni DB → Nuova Connessione
- Select database type
- Enter connection details
- Click Testa Connessione to verify
- Save
Each query references a connection, allowing you to monitor multiple databases from one instance.
- Go to Consultazioni → Nuova Consultazione
- Select data source (database or HTTP)
- Write your SQL query
- Click Testa Query to verify results
- Set key fields (columns that uniquely identify each error)
- Add recipients and/or notification channels
- Configure schedule (interval, time window, active days)
- Save
Go to Canali Notifica → Nuovo Canale:
| Type | Configuration |
|---|---|
| Webhook | URL, HTTP method, optional headers |
| Telegram | Bot token + Chat ID |
| Teams | Incoming Webhook URL |
Assign channels to queries in the query edit form.
Runs daily at 03:00:
- Query logs: 30 days (configurable)
- Email logs: 90 days (configurable)
- Resolved errors: 60 days (configurable)
Impostazioni (Settings) → Esegui Cleanup Manuale
- Use read-only database users when possible
- Protect the UI behind VPN or reverse proxy in production
- Change
SECRET_KEYbefore deploying - Database passwords are stored in plain text — secure your instance directory