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:
57
config.json
Normal file
57
config.json
Normal 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user