All Projects → saeedvaziry → laravel-monitoring

saeedvaziry / laravel-monitoring

Licence: other
Monitor your Laravel servers

Programming Languages

PHP
23972 projects - #3 most used programming language
Vue
7211 projects
javascript
184084 projects - #8 most used programming language
Blade
752 projects

Projects that are alternatives of or similar to laravel-monitoring

Pingcrm React
⚛️ Ping CRM React - A demo app to illustrate how Inertia.js works with Laravel and React (hosted on a heroku free dyno).
Stars: ✭ 158 (+33.9%)
Mutual labels:  laravel-framework
Laracrud
Laravel Code Generator based on MySQL Database
Stars: ✭ 238 (+101.69%)
Mutual labels:  laravel-framework
laravel-6-full-project
Laravel 6 full project with login, authentication, register, create | update | delete record through forms. Search and view the record. And implementation fo Laravel admin panel.
Stars: ✭ 31 (-73.73%)
Mutual labels:  laravel-framework
Laravel Cheat Sheet
Additional resource for the Udemy Laravel Essentials course
Stars: ✭ 194 (+64.41%)
Mutual labels:  laravel-framework
Laravel Auth
Laravel 8 with user authentication, registration with email confirmation, social media authentication, password recovery, and captcha protection. Uses offical [Bootstrap 4](http://getbootstrap.com). This also makes full use of Controllers for the routes, templates for the views, and makes use of middleware for routing. The project can be stood u…
Stars: ✭ 2,692 (+2181.36%)
Mutual labels:  laravel-framework
Laravel User Activity
Monitor user activity easily!
Stars: ✭ 253 (+114.41%)
Mutual labels:  laravel-framework
Olaindex
✨ Another OneDrive Directory Index
Stars: ✭ 2,061 (+1646.61%)
Mutual labels:  laravel-framework
starter-kit
📊 A complete dashboard built on laravel and quasar abstractions, ready to be used
Stars: ✭ 20 (-83.05%)
Mutual labels:  laravel-framework
Auth Tests
Always-current tests for Laravel's authentication system. Curated by the community.
Stars: ✭ 230 (+94.92%)
Mutual labels:  laravel-framework
Laravel-5.3-Repository
Simple repository setup for Laravel 5.3
Stars: ✭ 17 (-85.59%)
Mutual labels:  laravel-framework
Blogetc
Easily add a full Laravel blog (with built in admin panel and public views) to your laravel project with this simple package.
Stars: ✭ 198 (+67.8%)
Mutual labels:  laravel-framework
Learn Laravel
Laravel 学习资料和开源项目集
Stars: ✭ 229 (+94.07%)
Mutual labels:  laravel-framework
laravel-vue-i18n
Allows to connect your `Laravel` Framework translation files with `Vue`.
Stars: ✭ 430 (+264.41%)
Mutual labels:  laravel-framework
Xpressengine
PHP Open Source CMS
Stars: ✭ 178 (+50.85%)
Mutual labels:  laravel-framework
rest-api
Laravel restfull api boilerplate
Stars: ✭ 57 (-51.69%)
Mutual labels:  laravel-framework
Laravel Api Templates
Laravel API starter kit collection using different structures.
Stars: ✭ 149 (+26.27%)
Mutual labels:  laravel-framework
Laravel Gitscrum
GitScrum is a Project Management Tool, developed to help entrepreneurs, freelancers, managers, and teams Skyrocket their Productivity with the Agile methodology and Gamification.
Stars: ✭ 2,686 (+2176.27%)
Mutual labels:  laravel-framework
laravel-admin
Laravel Admin panel with theme , modules ,artisan commands and helper classess.Laravel admin boilerplate with theme and modules
Stars: ✭ 22 (-81.36%)
Mutual labels:  laravel-framework
Adware-ads-network-server
Online Advertising Network Server
Stars: ✭ 44 (-62.71%)
Mutual labels:  laravel-framework
laravel-hmvc-sample
Sample project, building a HMVC structure for Laravel 5,6,7,8
Stars: ✭ 28 (-76.27%)
Mutual labels:  laravel-framework

Laravel Monitoring

Monitor your Laravel applications server with a beautiful dashboard and get notified if anything gets wrong!

Supported OS

This package works only on Linux servers.

Installation

1) Install the latest version from composer

composer require saeedvaziry/laravel-monitoring

2) Publish vendors

php artisan monitoring:publish

3) Run migrations

php artisan migrate

4) Set up a cronjob to collect data

* * * * * cd /path-to-your-project && php artisan monitoring:record

5) Visit /monitoring to see the statistics.

Configuration

You can find the configuration at config/monitoring.php.

Key Description
instance_name This is your current server's name, And the data will be collected under this name.
routes You can change the URL prefix of the monitoring dashboard. Also, You can protect the route by applying middlewares to it.
models If you want to customize the models, define yours and update this config.
chart_colors Chart colors are customizable by this config.
notifications Currently, we support Slack and Email channels for notifications. However, You can add your custom channels. To add a custom channel, Create a class and implement it by SaeedVaziry\Monitoring\Channels\Channel and then add the class to channels under the notifications item.

Multi-Server 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.

Command

You can use php artisan monitoring:record command to collect the data manually.

Facade

Add the bellow line to your config/app.php file, Under the allias:

'aliases' => [
    ...
    'Monitoring' => \SaeedVaziry\Monitoring\Facades\Monitoring::class
    ...
];

With this Facade you can access the server's resource usages.

Example usages:

Monitoring::cpu()->usage(); // returns CPU usage
Monitoring::memory()->usage(); // returns Memory usage
Monitoring::disk()->usage(); // returns Disk usage

Purge Records

Without purging, the monitoring_records table can accumulate records very quickly. To mitigate this, you should schedule the monitoring:purge Artisan command to run daily or any time you wish. You can also, Set the purge_before configuration at config/monitoring.php.

$schedule->command('monitoring:purge')->daily();

Contributing

Please feel free to submit an issue or open a PR.

Credits

License

Laravel Monitoring is open-sourced software and licensed under the MIT License (MIT).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].