hamzi/corewatch
Embedded DevOps dashboard for Laravel: monitor CPU/RAM/disk, processes, and huge logs via /proc with zero external daemons. Secure whitelisted commands, health endpoint, and scheduled alerts (Slack/Telegram). Works with Livewire and admin panels like Filament/Nova.
telescope-like event listeners), ensuring minimal performance impact.Best Fit For:
Stack Requirements:
| Component | Compatibility | Notes |
|---|---|---|
| Laravel | 10.x+ (PHP 8.1+) | Uses Laravel’s service container. |
| PHP Extensions | pcntl, posix (for process metrics) |
May need enabling on shared hosting. |
| Database | MySQL, PostgreSQL, SQLite | Alert history stored in DB. |
| Cache | Redis, Memcached, Database | Metrics caching layer. |
| Queues | Database, Redis, SQS | Async log processing. |
| Filament | v3.x | UI integration. |
Anti-Patterns:
composer require hamzi/corewatch.corewatch.php (minimal setup: metrics, logs, alerts).top/htop during peak load).laravel-debugbar) may duplicate metrics.pcntl, posix) enabled.php artisan vendor:publish --provider="Hamzi\CoreWatch\CoreWatchServiceProvider".config/corewatch.php.config/corewatch.php.php artisan corewatch:tail.log-max-files or custom cleanup.| Failure Scenario | Impact | Mitigation Strategy |
|---|---|---|
| App Crash | Dashboard unavailable | Use external monitoring (e.g., UptimeRobot) as fallback. |
| Database Unavailable | Alert history lost | Replicate alert data to a secondary DB. |
How can I help you explore Laravel packages today?