Initial commit: Sentry-Emote system monitor

- Aggregator: Flask-based event broker with priority queue
- Frontend: OLED-optimized UI with animations
- Detectors: disk, cpu, memory, service, network
- Unified entry point (sentry.py) with process management
- Heartbeat TTL system for auto-clearing stale events

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-02 21:04:02 -06:00
commit 11896919e4
13 changed files with 1405 additions and 0 deletions

57
config.json Normal file
View File

@@ -0,0 +1,57 @@
{
"aggregator_url": "http://localhost:5000",
"aggregator": {
"script": "aggregator.py"
},
"detectors": [
{
"name": "disk_space",
"enabled": true,
"script": "detectors/disk_space.py",
"env": {
"CHECK_INTERVAL": "300",
"THRESHOLD_WARNING": "85",
"THRESHOLD_CRITICAL": "95"
}
},
{
"name": "cpu",
"enabled": true,
"script": "detectors/cpu.py",
"env": {
"CHECK_INTERVAL": "30",
"THRESHOLD_WARNING": "85",
"THRESHOLD_CRITICAL": "95"
}
},
{
"name": "memory",
"enabled": true,
"script": "detectors/memory.py",
"env": {
"CHECK_INTERVAL": "30",
"THRESHOLD_WARNING": "85",
"THRESHOLD_CRITICAL": "95"
}
},
{
"name": "service",
"enabled": false,
"script": "detectors/service.py",
"env": {
"CHECK_INTERVAL": "30",
"SERVICES": "nginx,postgres"
}
},
{
"name": "network",
"enabled": false,
"script": "detectors/network.py",
"env": {
"CHECK_INTERVAL": "60",
"HOSTS": "8.8.8.8,google.com",
"TIMEOUT": "5"
}
}
]
}