Monitor your Laravel applications server with a beautiful dashboard and get notified if anything gets wrong!
This package works only on Linux servers.
1) Install the latest version from composer
composer require saeedvaziry/laravel-monitoring
2) Publish vendors
php artisan vendor:publish --provider="SaeedVaziry\Monitoring\MonitoringServiceProvider"
3) Run migrations
php artisan migrate
4) Set up a cronjob to collect data
* * * * * php /path/to/laravel/artisan monitoring:record
/monitoring to see the statistics.
You can find the configuration at
||This is your current server's name, And the data will be collected under this name.|
||You can change the URL prefix of the monitoring dashboard. Also, You can protect the route by applying middlewares to it.|
||If you want to customize the models, define yours and update this config.|
||Chart colors are customizable by this config.|
||Currently, we support
Sometimes your source code is deployed to multiple servers.
For example, You have multiple webservers with a load balancer and another server for your Backoffice.
In this case, you just need to set a unique name for
MONITORING_INSTANCE_NAME environment variable on each server, Of course, assuming that you have one database in common with all the servers that you want to monitor.
The result will be similar to the Demo picture.
You can use
php artisan monitoring:record command to collect the data manually.
Add the bellow line to your
config/app.php file, Under the
'aliases' => [ ... 'Monitoring' => \SaeedVaziry\Monitoring\Facades\Monitoring::class ... ];
With this Facade you can access the server's resource usages.
Monitoring::cpu()->usage(); // returns CPU usage Monitoring::memory()->usage(); // returns Memory usage Monitoring::disk()->usage(); // returns Disk usage
Please feel free to submit an issue or open a PR.
- Fontawesome Icons
Laravel Monitoring is open-sourced software and licensed under the MIT License (MIT).