palzin-apm / palzin-laravel
Real-Time monitoring Laravel package using Palzin Monitor (APM)
Requires
- php: >=7.2|^8.0
- illuminate/console: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/contracts: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/support: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- palzin-apm/palzin-php: ^24.8.1
Requires (Dev)
- nunomaduro/collision: ^6.1
- orchestra/testbench: ^6.3|^7.0|^8.0|^9.0
README
Palzin Monitor offers real-time performance monitoring capabilities that allow you to effectively monitor and analyze the performance of your applications. With Palzin Monitor, you can capture and track all requests without the need for any code modifications. This feature enables you to gain valuable insights into the impact of your methods, database statements, and external requests on the overall user experience.
- Requirements
- Installation
- Configure the Ingestion Key
- Middleware Setup
- Test everything is working
- Official Documentation
- License
Requirements
- PHP >= 7.2.0
- Laravel >= 5.5
Install
To install the latest version of Palzin Monitor (APM) use below command:
composer require palzin-apm/palzin-laravel
For Lumen
If your application is based on Lumen you need to manually register the PalzinServiceProvider
:
$app->register(\Palzin\Laravel\PalzinServiceProvider::class);
Configure the Ingestion Key
First put the Ingestion Key in your environment file:
PALZIN_APM_INGESTION_KEY=[your ingestion key]
You can obtain an PALZIN_APM_INGESTION_KEY
creating a new project in your Palzin APM account.
Attach the Middleware
To monitor web requests you can attach the WebRequestMonitoring
in your http kernel or use in one or more route groups based on your personal needs.
/** * The application's route middleware groups. * * @var array */ protected $middlewareGroups = [ 'web' => [ ..., \Palzin\Laravel\Middleware\WebRequestMonitoring::class, ], 'api' => [ ..., \Palzin\Laravel\Middleware\WebRequestMonitoring::class, ]
Test everything is working
Run the command below:
php artisan palzin:test
Go to https://www.palzin.app/ to explore your data.
Official documentation
Go to the official documentation
LICENSE
This package is licensed under the MIT license.