feat: Implement data retention policy
- Replaced `data_storage.py` with `database.py` to use SQLite instead of a JSON file for data storage. - Added an `enforce_retention_policy` function to `database.py` to delete data older than 7 days. - Called this function in the main monitoring loop in `monitor_agent.py`. - Added Docker container monitoring. - Updated `.gitignore` to ignore `monitoring.db`.
This commit is contained in:
5
config.py
Normal file → Executable file
5
config.py
Normal file → Executable file
@@ -15,5 +15,8 @@ DAILY_RECAP_TIME = "18:28"
|
||||
NMAP_TARGETS = "192.168.2.0/24"
|
||||
NMAP_SCAN_OPTIONS = "-sS -T4 -R"
|
||||
|
||||
# Docker Configuration
|
||||
DOCKER_CONTAINERS_TO_MONITOR = ["gitea","portainer","gluetun","mealie","n8n","minecraft"]
|
||||
|
||||
# Test Mode (True to run once and exit, False to run continuously)
|
||||
TEST_MODE = False
|
||||
TEST_MODE = False
|
||||
Reference in New Issue
Block a user